Skip to content

Commit

Permalink
chore: improve message
Browse files Browse the repository at this point in the history
  • Loading branch information
genaroibc committed Oct 23, 2024
1 parent bc8a374 commit 7ccfb43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/handlers/evm/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export class Utils {

return {
isApproved: true,
message: `User has the expected balance ${amount} of ${tokenSymbol}`,
message:
tokenSymbol != null
? `User has the expected balance ${amount}`
: `User has the expected balance ${amount} of ${tokenSymbol}`,
};
}

Expand Down

0 comments on commit 7ccfb43

Please sign in to comment.