getStatusKey to return an empty string when passed a falsy value (#9640)

feature/default_network_editable
Dan J Miller 4 years ago committed by GitHub
parent c8526bc687
commit 43d97ebe4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ui/app/pages/swaps/awaiting-swap/awaiting-swap.js

@ -97,8 +97,9 @@ export default function AwaitingSwap ({
rpcPrefs, rpcPrefs,
) )
const statusKey = tradeTxData && getStatusKey(tradeTxData)
const timeRemaining = useTransactionTimeRemaining( const timeRemaining = useTransactionTimeRemaining(
getStatusKey(tradeTxData) === SUBMITTED_STATUS, statusKey === SUBMITTED_STATUS,
true, true,
tradeTxData?.submittedTime, tradeTxData?.submittedTime,
usedGasPrice, usedGasPrice,

Loading…
Cancel
Save