From 43d97ebe4f0611afdec5ea5db88ed4187808ffbf Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Mon, 19 Oct 2020 18:29:48 -0230 Subject: [PATCH] getStatusKey to return an empty string when passed a falsy value (#9640) --- ui/app/pages/swaps/awaiting-swap/awaiting-swap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/pages/swaps/awaiting-swap/awaiting-swap.js b/ui/app/pages/swaps/awaiting-swap/awaiting-swap.js index 40c9ff0de..1ddb5252f 100644 --- a/ui/app/pages/swaps/awaiting-swap/awaiting-swap.js +++ b/ui/app/pages/swaps/awaiting-swap/awaiting-swap.js @@ -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,