Skip to content

Commit

Permalink
fix breakdown. fix font size
Browse files Browse the repository at this point in the history
  • Loading branch information
cjinghong committed May 3, 2024
1 parent d5d955b commit 7483ddc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions governance/src/components/Wallet/Airdrop/AirdropInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const AirdropInfo: React.FC<AirdropInfoProps> = ({ loading, airdropInfo, onClaim
</UnclaimLabel>
</BaseModalContentColumn>
<BaseModalContentColumn marginTop={8}>
<Title fontSize={84} lineHeight={84}>
<Title fontSize={56} lineHeight={56}>
{loading ? loadingText : airdropAmountStr}
</Title>
</BaseModalContentColumn>
Expand Down Expand Up @@ -297,7 +297,7 @@ const AirdropInfo: React.FC<AirdropInfoProps> = ({ loading, airdropInfo, onClaim
</UnclaimLabel>
</BaseModalContentColumn>
<BaseModalContentColumn marginTop={24}>
<Title fontSize={64} lineHeight={64}>
<Title fontSize={48} lineHeight={48}>
{airdropAmountStr}
</Title>
</BaseModalContentColumn>
Expand Down
1 change: 1 addition & 0 deletions governance/src/components/Wallet/Airdrop/AirdropModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const AirdropModal: React.FC<AirdropModalProps> = ({ show, onClose }) => {
await provider.waitForTransaction(txhash, 2);
setStep("claimed");
} catch (err) {
console.error(err)
setStep("info");
}
}, [
Expand Down
2 changes: 1 addition & 1 deletion governance/src/hooks/airdrop/useAirdrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const useAirdrop = () => {
proof: { ...airdropClaim, amount: BigNumber.from(airdropClaim.amount) },
breakdown: {
[AirdropBreakdownKeys.maxStaked]: !totalBn.isZero(),
[AirdropBreakdownKeys.heldRbnAfterTGE]: airdropBreakdown[account]?.heldRbnAfterTGE
[AirdropBreakdownKeys.heldRbnAfterTGE]: airdropBreakdown[account.toLowerCase()]?.heldRbnAfterTGE
},
unclaimedAmount: totalBn.sub(claimedAmount)
});
Expand Down

0 comments on commit 7483ddc

Please sign in to comment.