Skip to content

Commit

Permalink
fix: dashboard claim (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick134-bit authored Dec 14, 2023
1 parent 5c69943 commit 6fb49cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/Pages/Dashboard/RewardsComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const RewardsComponent = ({
const buttonLabel = useMemo(() => {
if (!isWalletConnected) {
return 'Connect Wallet'
} else if (claimableRewards === 0) {
} else if (claimableRewards === 0 && totalGlobalClaimable === 0) {
return 'No Rewards'
}
return 'Claim'
Expand Down Expand Up @@ -266,7 +266,7 @@ const RewardsComponent = ({
txStep === TxStep.Estimating ||
txStep === TxStep.Posting ||
txStep === TxStep.Broadcasting ||
(isWalletConnected && claimableRewards === 0)
(isWalletConnected && claimableRewards === 0 && totalGlobalClaimable === 0)
}
maxWidth={570}
isLoading={
Expand Down
2 changes: 1 addition & 1 deletion components/Pages/Trade/Pools/AllPoolsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const AllPoolsTable = ({
return (
<Flex
padding={10}
width={['560px', '560px', '1160px']}
width={['full', 'auto']}
background={kBg}
boxShadow="0px 0px 50px rgba(0, 0, 0, 0.25)"
borderRadius={kBorderRadius}
Expand Down

0 comments on commit 6fb49cb

Please sign in to comment.