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:
parent
1ade2e84f0
commit
ba909c3055
@ -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