Skip to content

Commit

Permalink
Use totalRewardAmount instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillweston committed May 17, 2024
1 parent a742249 commit f746b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/claim-airdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ async function checkRewardAmount(address) {
}
const data = await response.json();

if (data.code === 0 && data.data.rewardAmount != null) {
return data.data.rewardAmount;
if (data.code === 0 && data.data.totalRewardAmount != null) {
return data.data.totalRewardAmount;
}

throw new Error(data.error || data.message || 'Unknown error occurred, code:', data.code);
Expand Down

0 comments on commit f746b95

Please sign in to comment.