<commit_before>import React from 'react';
import { Link } from 'react-router';
import { once } from 'lib/utils';
import './style.scss';

const logout = () => {
  localStorage.clear();
  window.location.href = '/';
};

const Links = () => localStorage.monzo_access_token ? (
  <div>
    <li className={window.location.pathname === '/' ? 'active' : ''}>
      <Link to="/">Home</Link>
    </li>
    <li className={window.location.pathname === '/map' ? 'active' : ''}>
      <Link to="/map">Map</Link>
    </li><commit_msg>Fix logout breaking the site<commit_after>import React from 'react';
import { Link } from 'react-router';
import { once } from 'lib/utils';
import './style.scss';

const logout = () => {
  localStorage.clear();
  window.location.reload();
};

const Links = () => localStorage.monzo_access_token ? (
  <div>
    <li className={window.location.pathname === '/' ? 'active' : ''}>
      <Link to="/">Home</Link>
    </li>
    <li className={window.location.pathname === '/map' ? 'active' : ''}>
      <Link to="/map">Map</Link>
    </li>
{'fraction_non_alphanumeric': 0.21652421652421652, 'fraction_numerical': 0.0, 'mean_word_length': 3.4661016949152543, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4710484', 'n_tokens_mistral': 351, 'n_tokens_neox': 352, 'n_words': 73}