1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Redirect a user to the Activity tab after they click on "View in Activity" (#15620)

This commit is contained in:
Daniel 2022-08-17 17:37:01 +02:00 committed by GitHub
parent 71b3f01db5
commit b27672bd0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,11 @@ import {
import { isSwapsDefaultTokenSymbol } from '../../../../shared/modules/swaps.utils';
import PulseLoader from '../../../components/ui/pulse-loader';
import { ASSET_ROUTE, DEFAULT_ROUTE } from '../../../helpers/constants/routes';
import { stopPollingForQuotes } from '../../../store/actions';
import { DEFAULT_ROUTE } from '../../../helpers/constants/routes';
import {
stopPollingForQuotes,
setDefaultHomeActiveTabName,
} from '../../../store/actions';
import { getRenderableNetworkFeesForQuote } from '../swaps.util';
import SwapsFooter from '../swaps-footer';
@ -301,7 +304,8 @@ export default function AwaitingSwap({
) {
history.push(DEFAULT_ROUTE);
} else {
history.push(`${ASSET_ROUTE}/${destinationTokenInfo?.address}`);
await dispatch(setDefaultHomeActiveTabName('Activity'));
history.push(DEFAULT_ROUTE);
}
}}
onCancel={async () => await dispatch(navigateBackToBuildQuote(history))}