Handle cases when account is undefined

This commit is contained in:
Lim Chee Aun 2023-12-22 23:02:44 +08:00
parent da58336285
commit 768477ea6c

View file

@ -39,6 +39,10 @@ function AccountBlock({
); );
} }
if (!account) {
return null;
}
// const navigate = useNavigate(); // const navigate = useNavigate();
const { const {