diff --git a/packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx b/packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx index b0c430875..05fd0a019 100644 --- a/packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx +++ b/packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx @@ -21,6 +21,9 @@ export function HandleAccountNotReady({ if (officer.state === "locked") { return ( { + officer.forget(); + }} onAccountUnlocked={(pwd) => { officer.tryUnlock(pwd); }} diff --git a/packages/exchange-backoffice-ui/src/pages/UnlockAccount.tsx b/packages/exchange-backoffice-ui/src/pages/UnlockAccount.tsx index 941e28627..74cb0d056 100644 --- a/packages/exchange-backoffice-ui/src/pages/UnlockAccount.tsx +++ b/packages/exchange-backoffice-ui/src/pages/UnlockAccount.tsx @@ -6,8 +6,10 @@ import { createNewForm } from "../handlers/forms.js"; export function UnlockAccount({ onAccountUnlocked, + onRemoveAccount, }: { onAccountUnlocked: (password: string) => void; + onRemoveAccount: () => void; }): VNode { const Form = createNewForm<{ password: string; @@ -64,6 +66,15 @@ export function UnlockAccount({ + ); diff --git a/packages/web-util/src/hooks/useLocalStorage.ts b/packages/web-util/src/hooks/useLocalStorage.ts index 45b7abd3c..f6241f427 100644 --- a/packages/web-util/src/hooks/useLocalStorage.ts +++ b/packages/web-util/src/hooks/useLocalStorage.ts @@ -43,8 +43,7 @@ export function buildStorageKey( return { id: name, codec: codec ?? (codecForString() as Codec), - [opaque_StorageKey]: true, - }; + } as StorageKey; } export interface StorageState {