diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-11 14:56:25 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-11 14:57:48 -0300 |
commit | 37f46f4d6b821d163c3e4db5c374b1120212ac74 (patch) | |
tree | 641c5bccd6d1b77fa440e67b80543eec9378ef4a /packages/bank-ui/src/hooks/bank-state.ts | |
parent | 4cbe754aca72b6edee922e3a84f251030293f088 (diff) | |
download | wallet-core-37f46f4d6b821d163c3e4db5c374b1120212ac74.tar.xz |
obs and cancel request, plus lint
Diffstat (limited to 'packages/bank-ui/src/hooks/bank-state.ts')
-rw-r--r-- | packages/bank-ui/src/hooks/bank-state.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/bank-ui/src/hooks/bank-state.ts b/packages/bank-ui/src/hooks/bank-state.ts index 83bb009cf..1d8c4f9e6 100644 --- a/packages/bank-ui/src/hooks/bank-state.ts +++ b/packages/bank-ui/src/hooks/bank-state.ts @@ -118,7 +118,7 @@ const codecForChallengeConfirmWithdrawal = .property("request", codecForString()) .build("ConfirmWithdrawalChallenge"); -const codecForAppLocation = codecForString as () => Codec<AppLocation> +const codecForAppLocation = codecForString as () => Codec<AppLocation>; const codecForChallengeCashout = (): Codec<CashoutChallenge> => buildCodecForObject<CashoutChallenge>() @@ -141,8 +141,6 @@ const codecForChallenge = (): Codec<ChallengeInProgess> => .alternative("update-password", codecForChallengeUpdatePassword()) .build("ChallengeInProgess"); - - interface BankState { currentWithdrawalOperationId: string | undefined; currentChallenge: ChallengeInProgess | undefined; @@ -163,10 +161,10 @@ const BANK_STATE_KEY = buildStorageKey("bank-app-state", codecForBankState()); /** * Client state saved in local storage. - * + * * This information is saved in the client because * the backend server session API is not enough. - * + * * @returns tuple of [state, update(), reset()] */ export function useBankState(): [ @@ -185,4 +183,3 @@ export function useBankState(): [ } return [value, updateField, reset]; } - |