1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Fix the close button in the speed up and cancel popovers (#14356)

This commit is contained in:
Dan J Miller 2022-04-05 11:06:58 -02:30 committed by ryanml
parent 1ade2e84f0
commit ba909c3055
2 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,7 @@ const CancelSpeedupPopover = () => {
: `🚀${t('speedUp')}`}
</>
}
onClose={() => closeModal('cancelSpeedUpTransaction')}
onClose={() => closeModal(['cancelSpeedUpTransaction'])}
className="cancel-speedup-popover"
>
<AppLoadingSpinner className="cancel-speedup-popover__spinner" />

View File

@ -44,7 +44,9 @@ const EditGasFeePopover = () => {
<Popover
title={t(popupTitle)}
// below logic ensures that back button is visible only if there are other modals open before this.
onBack={openModalCount === 1 ? undefined : () => closeModal('editGasFee')}
onBack={
openModalCount === 1 ? undefined : () => closeModal(['editGasFee'])
}
onClose={closeAllModals}
className="edit-gas-fee-popover"
>