diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index 8c84ce4e..163b82ac 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -28,7 +28,10 @@ function AccountInfo({ const [info, setInfo] = useState(isString ? null : account); useEffect(() => { - if (!isString) return; + if (!isString) { + setInfo(account); + return; + } setUIState('loading'); (async () => { try { @@ -41,7 +44,7 @@ function AccountInfo({ setUIState('error'); } })(); - }, [isString, fetchAccount]); + }, [isString, account, fetchAccount]); const { acct,