Skip to content

Commit

Permalink
fix bigint error
Browse files Browse the repository at this point in the history
  • Loading branch information
starknetdev committed Oct 12, 2023
1 parent e543038 commit 8bde1eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/app/components/upgrade/StatAttribute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export const StatAttribute = ({
const newUpgradeTotal =
amount + ((adventurer?.statUpgrades ?? 0) - upgradesTotal);

const maxNonBoosted = nonBoostedStat + BigInt(amount) >= BigInt(15);
console.log(nonBoostedStat, BigInt(amount), BigInt(15));

const maxNonBoosted =
(nonBoostedStat ?? BigInt(0)) + BigInt(amount) >= BigInt(15);

useEffect(() => {
if (buttonClicked) {
Expand Down

0 comments on commit 8bde1eb

Please sign in to comment.