From e1faf55f128a5a4d0ee698b3857cf615f86d935a Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Fri, 20 Sep 2024 12:14:21 +0200 Subject: [PATCH] forgot await --- src/components/post-form/post-form.tsx | 2 +- src/components/reply-modal/reply-modal.tsx | 2 +- src/stores/use-anon-mode-store.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/post-form/post-form.tsx b/src/components/post-form/post-form.tsx index 65d83ebb..17cc993f 100644 --- a/src/components/post-form/post-form.tsx +++ b/src/components/post-form/post-form.tsx @@ -233,7 +233,7 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid: const getAnonAddressForReply = useCallback(async () => { if (anonMode && !hasCalledAnonAddressRef.current) { hasCalledAnonAddressRef.current = true; - const existingSigner = getExistingSigner(address); + const existingSigner = await getExistingSigner(address); if (existingSigner) { setPublishReplyOptions({ signer: existingSigner, diff --git a/src/components/reply-modal/reply-modal.tsx b/src/components/reply-modal/reply-modal.tsx index 2a9f9f10..6884f178 100644 --- a/src/components/reply-modal/reply-modal.tsx +++ b/src/components/reply-modal/reply-modal.tsx @@ -44,7 +44,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s const getAnonAddressForReply = useCallback(async () => { if (anonMode && !hasCalledAnonAddressRef.current) { hasCalledAnonAddressRef.current = true; - const existingSigner = getExistingSigner(address); + const existingSigner = await getExistingSigner(address); if (existingSigner) { setPublishReplyOptions({ signer: existingSigner, diff --git a/src/stores/use-anon-mode-store.ts b/src/stores/use-anon-mode-store.ts index c94ddecb..ca1df055 100644 --- a/src/stores/use-anon-mode-store.ts +++ b/src/stores/use-anon-mode-store.ts @@ -23,7 +23,7 @@ const useAnonModeStore = create((set, get) => ({ addressSigners: {}, setAnonMode: (mode: boolean) => { set({ anonMode: mode }); - anonModeStore.setItem('anonMode', mode); // Persist anonMode state + anonModeStore.setItem('anonMode', mode); }, setThreadSigner: (postCid: string, signer: any) => { set((state) => ({