diff --git a/ui/components/app/cancel-speedup-popover/cancel-speedup-popover.js b/ui/components/app/cancel-speedup-popover/cancel-speedup-popover.js index 9bcadbc00..df1cf472f 100644 --- a/ui/components/app/cancel-speedup-popover/cancel-speedup-popover.js +++ b/ui/components/app/cancel-speedup-popover/cancel-speedup-popover.js @@ -96,7 +96,7 @@ const CancelSpeedupPopover = () => { : `🚀${t('speedUp')}`} } - onClose={() => closeModal('cancelSpeedUpTransaction')} + onClose={() => closeModal(['cancelSpeedUpTransaction'])} className="cancel-speedup-popover" > diff --git a/ui/components/app/edit-gas-fee-popover/edit-gas-fee-popover.js b/ui/components/app/edit-gas-fee-popover/edit-gas-fee-popover.js index 850eb17ed..0eade1419 100644 --- a/ui/components/app/edit-gas-fee-popover/edit-gas-fee-popover.js +++ b/ui/components/app/edit-gas-fee-popover/edit-gas-fee-popover.js @@ -44,7 +44,9 @@ const EditGasFeePopover = () => { closeModal('editGasFee')} + onBack={ + openModalCount === 1 ? undefined : () => closeModal(['editGasFee']) + } onClose={closeAllModals} className="edit-gas-fee-popover" >