aboutsummaryrefslogtreecommitdiff
path: root/packages/exchange-backoffice-ui/src
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-06-02 14:11:57 -0300
committerSebastian <sebasjm@gmail.com>2023-06-02 14:12:15 -0300
commite3ec395b35b8fcff9a6423bb118f14c9649ddcd8 (patch)
tree451d448c840f464b7462fecbd0cd29ca74abf04f /packages/exchange-backoffice-ui/src
parentc41d7e043798616a39c6c0a41b886ead3fa2eb9c (diff)
downloadwallet-core-e3ec395b35b8fcff9a6423bb118f14c9649ddcd8.tar.xz
memory key should be string
Diffstat (limited to 'packages/exchange-backoffice-ui/src')
-rw-r--r--packages/exchange-backoffice-ui/src/hooks/useOfficer.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/exchange-backoffice-ui/src/hooks/useOfficer.ts b/packages/exchange-backoffice-ui/src/hooks/useOfficer.ts
index 2ed375846..4ec43569b 100644
--- a/packages/exchange-backoffice-ui/src/hooks/useOfficer.ts
+++ b/packages/exchange-backoffice-ui/src/hooks/useOfficer.ts
@@ -49,10 +49,10 @@ interface OfficerReady {
}
const OFFICER_KEY = buildStorageKey("officer", codecForOfficer());
-const ACCOUNT_KEY = buildStorageKey<Account>("account");
+const ACCOUNT_KEY = "account";
export function useOfficer(): OfficerState {
- const accountStorage = useMemoryStorage(ACCOUNT_KEY);
+ const accountStorage = useMemoryStorage<Account>(ACCOUNT_KEY);
const officerStorage = useLocalStorage(OFFICER_KEY);
const officer = officerStorage.value;