Skip to content

Commit e4be336

Browse files
committed
fixup! Use mostRecentWallet in DevTestScene and delete useSelectedWallet
1 parent 1c303ef commit e4be336

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/scenes/DevTestScene.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export const DevTestScene: React.FC<Props> = props => {
6969

7070
// TODO: Make this scene work without useSelectedWallet() for unit testing compatibility
7171
const { id: walletId, tokenId } = useSelector(
72-
state => state.ui.settings.mostRecentWallets[0]
72+
state =>
73+
state.ui.settings.mostRecentWallets[0] ?? { walletId: '', tokenId: null }
7374
)
7475
const account = useSelector(state => state.core.account)
7576
const wallet: EdgeCurrencyWallet | undefined =

0 commit comments

Comments
 (0)