Commit 54175e69 authored by Max Alekseenko's avatar Max Alekseenko

fix rewards button tooltip

parent 0f8e6b1d
......@@ -24,7 +24,7 @@ const RewardsButton = ({ variant = 'header', size }: Props) => {
textAlign="center"
padding={ 2 }
openDelay={ 500 }
isDisabled={ isMobile }
isDisabled={ isMobile || isLoading || Boolean(apiToken) }
width="150px"
>
<Button
......@@ -34,6 +34,7 @@ const RewardsButton = ({ variant = 'header', size }: Props) => {
as={ apiToken ? LinkInternal : 'button' }
{ ...(apiToken ? { href: route({ pathname: '/account/rewards' }) } : {}) }
onClick={ apiToken ? undefined : openLoginModal }
onFocus={ e => e.preventDefault() } // eslint-disable-line
fontSize="sm"
size={ size }
px={ 2.5 }
......
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