Skip to content

Commit

Permalink
makes suspicious asset check stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidesstaffieri committed Sep 16, 2024
1 parent 98b7097 commit c7f991e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/src/popup/helpers/blockaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const useScanAsset = (address: string) => {
};

export const isAssetSuspicious = (blockaidData?: BlockAidScanAssetResult) => {
if (!blockaidData) {
if (!blockaidData || !blockaidData.result_type) {
return false;
}
return blockaidData.result_type !== "Benign";
Expand Down

0 comments on commit c7f991e

Please sign in to comment.