diff --git a/components/apps/me.js b/components/apps/me.js index f3f9e0f2..b12baa79 100644 --- a/components/apps/me.js +++ b/components/apps/me.js @@ -22,22 +22,12 @@ export class AboutUriel extends Component { "talks": , "resume": , } - - let lastVisitedScreen = localStorage.getItem("about-section"); - if (lastVisitedScreen === null || lastVisitedScreen === undefined) { - lastVisitedScreen = this.props.default; - } - - // focus last visited screen - this.changeScreen(document.getElementById(lastVisitedScreen)); + this.changeScreen(document.getElementById(this.active_screen)); } changeScreen = (e) => { const screen = e.id || e.target.id; - // store this state - localStorage.setItem("about-section", screen); - // google analytics ReactGA.send({ hitType: "pageview", page: `/${screen}`, title: "Custom Title" });