From 4c069eb4c5fe9f897dc7525714e433d229f49263 Mon Sep 17 00:00:00 2001 From: Sahil Date: Fri, 12 Feb 2021 14:58:16 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fixed=20routing=20problem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/reward-calculator/index.js | 5 +++-- components/validators/index.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/reward-calculator/index.js b/components/reward-calculator/index.js index 1e8d6c2e..aabbe880 100644 --- a/components/reward-calculator/index.js +++ b/components/reward-calculator/index.js @@ -212,7 +212,7 @@ const RewardCalculatorPage = () => { const onPayment = async () => { updateTransactionState(Events.INTENT_STAKING); if (transactionHash) setTransactionHash(null); - router.push("/payment", "/payment", "shallow"); + router.push("/payment", "/payment", { shallow: true }); // get(bondedAmount, "currency", 0) === 0 // ? router.push("/payment", "/payment", "shallow") // : openPaymentPopover(); @@ -537,7 +537,8 @@ const RewardCalculatorPage = () => { Non-custodial & Secure - We do not own your private keys and cannot access your funds. You are always in control. + We do not own your private keys and cannot access your + funds. You are always in control. diff --git a/components/validators/index.js b/components/validators/index.js index c9f8cfe3..c8ad8fb1 100644 --- a/components/validators/index.js +++ b/components/validators/index.js @@ -333,7 +333,7 @@ const Validators = () => { const onPayment = async () => { updateTransactionState(Events.INTENT_STAKING); if (transactionHash) setTransactionHash(null); - router.push("/payment", "/payment", "shallow"); + router.push("/payment", "/payment", { shallow: true }); }; const trackRewardCalculatedEvent = debounce((eventData) => {