From d68e0235c4076dea02526e0999c4ba391a6864f1 Mon Sep 17 00:00:00 2001 From: devchenyan Date: Sat, 11 Jan 2025 21:46:43 +0800 Subject: [PATCH] fix: comment --- packages/neuron-ui/src/components/SignAndVerify/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/neuron-ui/src/components/SignAndVerify/index.tsx b/packages/neuron-ui/src/components/SignAndVerify/index.tsx index ca2760a35..610804eae 100644 --- a/packages/neuron-ui/src/components/SignAndVerify/index.tsx +++ b/packages/neuron-ui/src/components/SignAndVerify/index.tsx @@ -251,8 +251,11 @@ const SignAndVerify = () => { return t(err.message, err.i18n) } } + if (wallet?.addresses && !wallet.addresses.find(item => item.address === address)) { + return t('sign-and-verify.address-not-found') + } return undefined - }, [t, address, isMainnet]) + }, [t, address, isMainnet, wallet.addresses]) return (