Skip to content

Commit

Permalink
fix(mobile): remove replaceModal call
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii committed May 13, 2024
1 parent 57df05b commit 70b341d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import { tk } from '@tonkeeper/mobile/src/wallet';
export const RechargeMethodsModal = memo(() => {
const nav = useNavigation();

const handleNavigateToPromo = useCallback(() => {
nav.replaceModal('/recharge-by-promo');
const handleNavigateToPromo = useCallback(async () => {
nav.goBack();
await delay(700);
nav.navigate('/recharge-by-promo');
}, []);

const handleRechargeBattery = useCallback(
Expand Down

0 comments on commit 70b341d

Please sign in to comment.