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) => ({