mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix the close button in the speed up and cancel popovers (#14356)
This commit is contained in:
parent
d6df3700f7
commit
fc4ae4ef61
@ -96,7 +96,7 @@ const CancelSpeedupPopover = () => {
|
||||
: `🚀${t('speedUp')}`}
|
||||
</>
|
||||
}
|
||||
onClose={() => closeModal('cancelSpeedUpTransaction')}
|
||||
onClose={() => closeModal(['cancelSpeedUpTransaction'])}
|
||||
className="cancel-speedup-popover"
|
||||
>
|
||||
<AppLoadingSpinner className="cancel-speedup-popover__spinner" />
|
||||
|
@ -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"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user