@@ -1,5 +1,5 @@
11import { Nothing, Just } from 'folktale/maybe';
2−import React, { useState } from 'react';
2+import React, { useState, useEffect } from 'react';
33import * as azimuth from 'azimuth-js';
44
55import { H1 } from 'indigo-react';
@@ -28,17 +28,20 @@ export default function Login() {
2828 // globals
2929 const history = useHistory();
3030 const { contracts } = useNetwork();
31− const { wallet } = useWallet();
31+ const { wallet, setUrbitWallet } = useWallet();
3232 const { pointCursor, setPointCursor } = usePointCursor();
3333
3434 // inputs
3535 const [currentTab, setCurrentTab] = useState(TABS.TICKET);
3636
37− //TODO figure out how to do things once
38− // // we expect wallet and pointCursor to not be set yet
39− // setUrbitWallet(Nothing());
40− // setWallet(Nothing());
41− // setPointCursor(Nothing());
37+ useEffect(() => {
38+ // on-mount
39+ setUrbitWallet(Nothing());
40+ setPointCursor(Nothing());
41+
42+ // on-unmount
43+ return () => {};
44+ }, []);
4245
4346 const doContinue = async () => {
4447 const realWallet = need.wallet(wallet);