@@ -22,12 +22,14 @@ import { generateTemporaryOwnershipWallet } from 'lib/walletgen';
2222import { useActivateFlow } from './ActivateFlow';
2323import { useLocalRouter } from 'lib/LocalRouter';
2424import useImpliedTicket from 'lib/useImpliedTicket';
25+import useHasDisclaimed from 'lib/useHasDisclaimed';
2526
2627export default function ActivateCode() {
2728 const history = useHistory();
2829 const { names, push } = useLocalRouter();
2930 const { contracts } = useNetwork();
3031 const impliedTicket = useImpliedTicket();
32+ const [hasDisclaimed] = useHasDisclaimed();
3133 const [generalError, setGeneralError] = useState();
3234 const [deriving, setDeriving] = useState(false);
3335 const {
@@ -48,7 +50,12 @@ export default function ActivateCode() {
4850 const goToLogin = useCallback(() => history.popAndPush(ROUTE_NAMES.LOGIN), [
4951 history,
5052 ]);
51− const goToPassport = useCallback(() => push(names.PASSPORT), [names, push]);
53+ const goToPassport = useCallback(() => {
54+ push(names.PASSPORT);
55+ if (!hasDisclaimed) {
56+ push(names.DISCLAIMER);
57+ }
58+ }, [names, push, hasDisclaimed]);
5259
5360 const pass = derivedWallet.matchWith({
5461 Nothing: () => false,