diff --git a/app/src/components/BossInfo.tsx b/app/src/components/BossInfo.tsx index c8f023e..a17e8be 100644 --- a/app/src/components/BossInfo.tsx +++ b/app/src/components/BossInfo.tsx @@ -81,7 +81,7 @@ const BossInfo = () => { return () => clearInterval(tickInterval) }, [balance, army?.profit_per_second, player?.last_raided_at, boss?.level]) return
{bossToName[variant]} Moloch (lvl {boss ? boss.level + 1 : 0})
+{bossToName[variant]} Moloch (lvl {boss ? boss.level + 1 : 0})
{parseFloat(parseFloat(formatUnits(bossToReward[boss?.level || 0], 18).toString()).toFixed(4))} RGCVII reward
{parseFloat((chanceToDefeat.current * 100).toFixed(2))} % to slay{" "} diff --git a/app/src/components/Counter.tsx b/app/src/components/Counter.tsx index 843fa32..13a6404 100644 --- a/app/src/components/Counter.tsx +++ b/app/src/components/Counter.tsx @@ -43,8 +43,8 @@ export const toReadable = (rawValue: bigint) => { } else { const divided = value / suffixes[i - 1].value; const numStr = (value % suffixes[i - 1].value).toString().slice(0, 3); - const remainder = parseInt(numStr.replace(/0+$/, ''), 10); - return `${divided.toString()}.${remainder.toString()} ${suffixes[i - 1].suffix}`; + const remainder = numStr == "0" ? "" : "." + parseInt(numStr.replace(/0+$/, ''), 10); + return `${divided.toString()}${remainder.toString()} ${suffixes[i - 1].suffix}`; } } } diff --git a/app/src/components/PixelatedQuote.tsx b/app/src/components/PixelatedQuote.tsx index fc4f07a..6e7d19d 100644 --- a/app/src/components/PixelatedQuote.tsx +++ b/app/src/components/PixelatedQuote.tsx @@ -198,8 +198,8 @@ function PixelatedQuote() { setTimeout(() => { setIsShown(false); - }, 4000); - }, 6000); + }, 8000); + }, 10000); return () => { if (intervalIdRef.current !== null) { diff --git a/app/src/components/RegistrationModal.tsx b/app/src/components/RegistrationModal.tsx index 279fdad..ed05ec6 100644 --- a/app/src/components/RegistrationModal.tsx +++ b/app/src/components/RegistrationModal.tsx @@ -16,7 +16,8 @@ const RegistrationModal = ({ isOpen, setIsOpen }: RegistrationModalProps) => { }, [register, setIsOpen]) if (!isOpen) return null; return