@@ -1,4 +1,4 @@
1−import React from 'react';
1+import React, { useEffect } from 'react';
22
33import useRouter from 'lib/useRouter';
44import { LocalRouterProvider } from 'lib/LocalRouter';
@@ -30,6 +30,13 @@ export default function Activate() {
3030 initialRoutes: [{ key: NAMES.CODE }],
3131 });
3232
33+ useEffect(() => {
34+ // remove potential /activate path on unmount
35+ return () => {
36+ window.history.replaceState(null, null, '');
37+ };
38+ }, []);
39+
3340 // when we know the derived point, ensure we have the data to display it
3441 useSyncKnownPoints(
3542 [state.derivedPoint.getOrElse(null)].filter(p => p !== null)