Skip to content

Commit

Permalink
feat(apps/web): tiny perf optimization
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Reinoso <[email protected]>
  • Loading branch information
LufyCZ and danielr18 committed Jan 27, 2025
1 parent 03f0488 commit f314e6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const L2_TTL = 5n
const TTL = 30n

export const getDefaultTTL = (chainId: EvmChainId) => {
return Object.keys(evmChainsL2).includes(chainId.toString()) ? L2_TTL : TTL
return evmChainsL2[chainId] ? L2_TTL : TTL
}

interface UseTransactionDeadline {
Expand Down

0 comments on commit f314e6f

Please sign in to comment.