Skip to content

Commit

Permalink
fix: hide ledger modal
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbodnar committed Apr 27, 2022
1 parent a753384 commit aa11566
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/frontend/src/routes/SignWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Mixpanel } from '../mixpanel';
import { switchAccount, redirectTo } from '../redux/actions/account';
import { selectAccountId } from '../redux/slices/account';
import { selectAvailableAccounts, selectAvailableAccountsIsLoading } from '../redux/slices/availableAccounts';
import { actions as ledgerActions } from '../redux/slices/ledger';
import {
addQueryParams,
handleSignTransactions,
Expand All @@ -26,6 +27,10 @@ import {
} from '../redux/slices/sign';
import { isUrlNotJavascriptProtocol } from '../utils/helper-api';

const {
checkAndHideLedgerModal
} = ledgerActions;

export function SignWrapper() {
const dispatch = useDispatch();

Expand Down Expand Up @@ -101,6 +106,7 @@ export function SignWrapper() {
const handleApproveTransaction = async () => {
Mixpanel.track('SIGN approve the transaction');
await dispatch(handleSignTransactions());
dispatch(checkAndHideLedgerModal());
};

const handleCancelTransaction = async () => {
Expand Down

0 comments on commit aa11566

Please sign in to comment.