Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkx committed Aug 16, 2024
1 parent 838d450 commit 129ff61
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ export function useMaxAmount({
nativeCurrency.decimals
)

if (
typeof estimatedParentChainGasFees === 'undefined' ||
typeof estimatedChildChainGasFees === 'undefined'
) {
return
}

const estimatedTotalGasFees =
(estimatedParentChainGasFees ?? 0) + (estimatedChildChainGasFees ?? 0)

Expand Down

0 comments on commit 129ff61

Please sign in to comment.