From d0506b595c6403710fd97d01d4660ef4868c586e Mon Sep 17 00:00:00 2001 From: rasguy92 Date: Fri, 8 Dec 2023 00:40:55 +0700 Subject: [PATCH] feat: add most feedback --- src/common/modals/ClaimModal.tsx | 7 +++---- src/common/modals/DiceWinnerModal.tsx | 3 ++- src/components/WegaGames/index.tsx | 4 ++-- src/containers/Navigation/index.tsx | 2 +- src/containers/WinsPage/index.tsx | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/common/modals/ClaimModal.tsx b/src/common/modals/ClaimModal.tsx index 0b7c2d4..e031853 100644 --- a/src/common/modals/ClaimModal.tsx +++ b/src/common/modals/ClaimModal.tsx @@ -47,7 +47,7 @@ export const ClaimModal = ({ hide, game, wallet, tokenDecimals } }; const wagerUSDValue = useTokenUSDValue(game.wager.wagerCurrency, Number(formatUnits(game.wager.wagerAmount, tokenDecimals))); - console.log(Number(formatUnits(game.wager.wagerAmount, tokenDecimals))) + return tokenDecimals && (
@@ -89,9 +89,8 @@ export const ClaimModal = ({ hide, game, wallet, tokenDecimals size={11} /> -
+
{miniWalletAddress(wallet.address)} - {"Change wallet"}
@@ -138,7 +137,7 @@ export const ClaimModal = ({ hide, game, wallet, tokenDecimals - Net winnings + Net winnings { !calculateFeesQuery.data ? 'calculating...' : { parseFloat(String(Number(formatUnits(calculateFeesQuery.data[sendAmountIndex], tokenDecimals)) - Number(formatUnits(game.wager.wagerAmount, tokenDecimals)))).toFixed(2) diff --git a/src/common/modals/DiceWinnerModal.tsx b/src/common/modals/DiceWinnerModal.tsx index cad6018..5dfb0a1 100644 --- a/src/common/modals/DiceWinnerModal.tsx +++ b/src/common/modals/DiceWinnerModal.tsx @@ -59,6 +59,7 @@ const DiceWinnerModal = ({ {wagerCurrency} +
- +