Skip to content

Commit

Permalink
Handles unloaded origin chain (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha authored Nov 6, 2023
1 parent 3dc7605 commit 0044808
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const ToTokenListOverlay = () => {
bridgeQuotesMatchDestination &&
calculateEstimatedTransactionTime({
originChainId: fromChainId,
originTokenAddress: fromToken.addresses[
originTokenAddress: fromToken?.addresses[
fromChainId
] as Address,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const calculateEstimatedTransactionTime = ({
originTokenAddress
)
const baseEstimatedCompletionInSeconds: number =
(BRIDGE_REQUIRED_CONFIRMATIONS[originChainId] * originChain.blockTime) /
(BRIDGE_REQUIRED_CONFIRMATIONS[originChainId] * originChain?.blockTime) /
1000

let estimatedCompletionInSeconds: number
Expand Down

0 comments on commit 0044808

Please sign in to comment.