1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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

This commit is contained in:
Dan J Miller 2020-10-19 18:29:48 -02:30 committed by GitHub
parent c8526bc687
commit 43d97ebe4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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