Skip to content

Commit

Permalink
Merge pull request #530 from us3r-network/F-claimAmount-ttang
Browse files Browse the repository at this point in the history
feat: claim amount
  • Loading branch information
Tonyce authored Feb 7, 2024
2 parents 7882015 + 31761fa commit 6ab3c45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion apps/u3/src/components/social/farcaster/ClaimNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export default function ClaimNotice() {
<Cross2Icon className="w-5 h-5" />
</button>
</div>
<div>💰💰💰You have 100 $DEGEN unclaimed</div>
<div>
💰💰💰You have <span className="font-bold">{claimStatus.amount}</span>{' '}
$DEGEN unclaimed
</div>
<div>Click the button below 👇👇👇</div>
<div>
<button
Expand Down
4 changes: 2 additions & 2 deletions apps/u3/src/hooks/social/farcaster/useFarcasterClaim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function useFarcasterClaim({ currFid }: { currFid: number }) {
const { isLogin } = useLogin();
const [claimStatus, setClaimStatus] = useState({
statusCode: 100,
amount: 100,
amount: 0,
msg: '',
});

Expand All @@ -21,7 +21,7 @@ export default function useFarcasterClaim({ currFid }: { currFid: number }) {
const { data } = resp;
setClaimStatus({
statusCode: data.data.statusCode,
amount: data.data.amount || 100,
amount: data.data.amount || 0,
msg: data.msg,
});
console.log('getClaimStatus', data);
Expand Down

0 comments on commit 6ab3c45

Please sign in to comment.