Skip to content

Commit

Permalink
fix: 🐛 fixed routing problem
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilnanda1995 committed Feb 12, 2021
1 parent 1daad53 commit 4c069eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions components/reward-calculator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -537,7 +537,8 @@ const RewardCalculatorPage = () => {
Non-custodial & Secure
</AlertTitle>
<AlertDescription fontSize="xs">
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.
</AlertDescription>
</div>
</Alert>
Expand Down
2 changes: 1 addition & 1 deletion components/validators/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 4c069eb

Please sign in to comment.