1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

ImportToken does not clear up the page when going back (#14093)

This commit is contained in:
Niranjana Binoy 2022-03-22 15:10:25 -04:00 committed by Dan Miller
parent 73b3881348
commit e9cd1237ce

View File

@ -113,7 +113,10 @@ const ConfirmImportToken = () => {
type="secondary" type="secondary"
large large
className="page-container__footer-button" className="page-container__footer-button"
onClick={() => history.push(IMPORT_TOKEN_ROUTE)} onClick={() => {
dispatch(clearPendingTokens());
history.push(IMPORT_TOKEN_ROUTE);
}}
> >
{t('back')} {t('back')}
</Button> </Button>