Skip to content

Commit

Permalink
Reture directly when received data is false for log-airdrop endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillweston committed May 5, 2024
1 parent d847374 commit 0d7cf4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/claim-airdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ async function confirmTransaction() {
if (airdropLog.success) {
console.log('Log successful for this airdrop claim, message:', airdropLog.message);
} else {
console.log('Log unsuccessful for this airdrop claim, message:', airdropLog.message);
console.error('Log unsuccessful for this airdrop claim, message:', airdropLog.message);
return;
}

displayMessage('Transaction successful! Check Your Wallet For Airdrop', 'success');
Expand Down

0 comments on commit 0d7cf4a

Please sign in to comment.