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