From 54b370f41ba488ea6331251654a5918140f65c97 Mon Sep 17 00:00:00 2001 From: Mitja Belak Date: Sat, 26 Oct 2024 13:53:23 +0200 Subject: [PATCH] Checking for known / shrouded units now calculated with actual total_minted at that moment --- app/src/components/Army.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/Army.tsx b/app/src/components/Army.tsx index dd0e572..7cf9c74 100644 --- a/app/src/components/Army.tsx +++ b/app/src/components/Army.tsx @@ -106,7 +106,7 @@ const Army = () => { const setAvailabilities = useCallback(() => { if (isRegistered) { - const totalMinted = player?.total_minted ?? BigInt(0); + const totalMinted = (player?.total_minted ?? BigInt(0)) + (balanceCount.current - (balance ?? BigInt(0))); const n_units: Record = { 0: army?.moloch_denier.level ?? 0, 1: army?.apprentice.level ?? 0,