Commit b6aa5e92 by Arjun Jhukal

updated the coin changes

parent 6161dbee
...@@ -38,9 +38,7 @@ export default function CoinCalculator({ slug }: { slug: string }) { ...@@ -38,9 +38,7 @@ export default function CoinCalculator({ slug }: { slug: string }) {
}; };
const handleBuy = () => { const handleBuy = () => {
if (baseCoins !== null && bonusCoins !== null) {
router.push(`/buy-coins/${slug}/checkout?amount=${amount}&bonus=${amount}`); router.push(`/buy-coins/${slug}/checkout?amount=${amount}&bonus=${amount}`);
}
}; };
return ( return (
......
...@@ -11,20 +11,20 @@ export default function BuyCoinSinlgeGame({ slug }: { slug: string }) { ...@@ -11,20 +11,20 @@ export default function BuyCoinSinlgeGame({ slug }: { slug: string }) {
{ {
amount: "10", amount: "10",
label: "Starter Pack", label: "Starter Pack",
coin: "100", coin: "1000",
bonus: "10", bonus: "10",
tag: "popular" tag: "popular"
}, },
{ {
amount: "20", amount: "20",
label: "Golden Pack", label: "Golden Pack",
coin: "200", coin: "2000",
bonus: "20", bonus: "20",
}, },
{ {
amount: "50", amount: "50",
label: "Legend Pack", label: "Legend Pack",
coin: "500", coin: "5000",
bonus: "50", bonus: "50",
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment