diff --git a/crypto_clash_frontend/app/clash/Reveal.tsx b/crypto_clash_frontend/app/clash/Reveal.tsx index da70971..bfe247d 100644 --- a/crypto_clash_frontend/app/clash/Reveal.tsx +++ b/crypto_clash_frontend/app/clash/Reveal.tsx @@ -319,6 +319,30 @@ export default function Reveal({ {outcomeData.name} + {/* Display ETH winnings */} + {gameDetails && ( +
+

+ {outcome === 1 ? "You Won" : outcome === 3 ? "Draw" : "You Lost"} +

+

+ {outcome === 1 ? ( + <> + +{web3?.utils.fromWei(String(BigInt(gameDetails.initialBet) * BigInt(2)), "ether")} ETH + + ) : outcome === 3 ? ( + <> + +{web3?.utils.fromWei(gameDetails.initialBet, "ether")} ETH + + ) : ( + <> + -{web3?.utils.fromWei(gameDetails.initialBet, "ether")} ETH + + )} +

+
+ )} + {/* Show Claim Coins button only on win or draw and if game is active */} {(outcome === 1 || outcome === 3) && gameDetails?.isActive && (