1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02: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 GitHub
parent 5bdde79ded
commit 8d295f189b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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