Skip to content

Commit

Permalink
Add check guard for undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
JIOjosBG committed Jun 25, 2024
1 parent 355e686 commit 728a5c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/SignMessage/SignMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default function SignMessage({
_txn.primaryType &&
_txn.primaryType.toLowerCase().includes('permit') &&
_txn.message && _txn.message.spender &&
UNISWAP_UNIVERSAL_ROUTERS[_chainId] &&
_txn.message.spender.toLowerCase() === UNISWAP_UNIVERSAL_ROUTERS[_chainId].toLowerCase() &&
_txn.domain && _txn.domain.verifyingContract &&
_txn.domain.verifyingContract.toLowerCase() === PERMIT_2_ADDRESS.toLowerCase()
Expand Down

0 comments on commit 728a5c4

Please sign in to comment.