Commit 4875ae67 authored by Max Alekseenko's avatar Max Alekseenko

fix address validation

parent 89d2af32
......@@ -70,7 +70,7 @@ const LoginStepContent = ({ goNext, closeModal }: Props) => {
loginToRewardsProgram();
}, [ loginToAccount, loginToRewardsProgram, profileQuery ]);
const isAddressMismatch = isConnected && profileQuery.data?.address_hash !== address;
const isAddressMismatch = Boolean(address) && Boolean(profileQuery.data?.address_hash) && profileQuery.data?.address_hash !== address;
return (
<>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment