diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-08 09:20:02 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-08 09:20:11 -0300 |
commit | 2a4dbc67e8d1e6a256431e34f0b2e0e19d204f70 (patch) | |
tree | 67fdb4e1eefee6ec36727d616fba611def822864 /packages/demobank-ui/src/pages/WalletWithdrawForm.tsx | |
parent | 64dea5e94086d8f79d1af7e5b7ee045d72d02495 (diff) | |
download | wallet-core-2a4dbc67e8d1e6a256431e34f0b2e0e19d204f70.tar.gz wallet-core-2a4dbc67e8d1e6a256431e34f0b2e0e19d204f70.tar.bz2 wallet-core-2a4dbc67e8d1e6a256431e34f0b2e0e19d204f70.zip |
remove dead code
Diffstat (limited to 'packages/demobank-ui/src/pages/WalletWithdrawForm.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/WalletWithdrawForm.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx index 078f4e5f5..caf205f31 100644 --- a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx +++ b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx @@ -33,7 +33,7 @@ import { VNode, h } from "preact"; import { forwardRef } from "preact/compat"; import { useState } from "preact/hooks"; import { useBankCoreApiContext } from "../context/config.js"; -import { useBackendState } from "../hooks/backend.js"; +import { useSessionState } from "../hooks/session.js"; import { useBankState } from "../hooks/bank-state.js"; import { usePreferences } from "../hooks/preferences.js"; import { RouteDefinition } from "../route.js"; @@ -65,7 +65,7 @@ function OldWithdrawalForm({ const [bankState, updateBankState] = useBankState(); const { api } = useBankCoreApiContext(); - const { state: credentials } = useBackendState(); + const { state: credentials } = useSessionState(); const creds = credentials.status !== "loggedIn" ? undefined : credentials; const [amountStr, setAmountStr] = useState<string | undefined>( |