Skip to content

Commit

Permalink
return wallet sanctioned for all addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
HrithikSampson committed Sep 10, 2024
1 parent 48803c9 commit 72b115f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/donation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export async function isWalletSanctioned(

// Check the response and determine if the address is sanctioned
const result = data && data[0];
return true;
return Boolean(result && result.isSanctioned) || true;
} catch (error) {
console.error('Error checking wallet sanction status:', error);
return false;
Expand Down

0 comments on commit 72b115f

Please sign in to comment.