Commit fb06d5d
committed
frontend: only update addbuyreceiveonemptybalance state if mounted
Used mounted hook to only update AddBuyReceiveOnEmptyBalances state
if the component is actually mounted.
This was an approach to fix unknown account code error that
appears doing the following:
1) unlock device
2) navigate to account
3) back to account summary
4) unplug the devie
Removing the device sometimes errors in AddBuyReceiveOnEmptyBalances
component.
When logging deciveIDs, keystores and accounts (in sidebar.tsx), it
seems after unplugging the device the keystore is already empty but
the frontend still has accounts for a short time.1 parent ba40c58 commit fb06d5d
1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
| |||
0 commit comments