fix: increase precision for shares display and input step in InvestPanel
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m26s

This commit is contained in:
2026-03-20 15:17:46 -04:00
parent 7367e4d7c6
commit 898f99049d
+3 -3
View File
@@ -136,7 +136,7 @@ export default function InvestPanel({ fundSlug, nav, userBalance, userShares, us
</div> </div>
{amountNum >= 1 && ( {amountNum >= 1 && (
<p className="text-xs text-slate-400"> <p className="text-xs text-slate-400">
You&apos;ll receive <span className="text-white font-medium">{previewShares.toFixed(4)} shares</span> You&apos;ll receive <span className="text-white font-medium">{previewShares.toFixed(6)} shares</span>
</p> </p>
)} )}
<button <button
@@ -154,7 +154,7 @@ export default function InvestPanel({ fundSlug, nav, userBalance, userShares, us
<input <input
type="number" type="number"
min="0" min="0"
step="0.0001" step="0.000001"
max={userShares} max={userShares}
value={shares} value={shares}
onChange={(e) => setShares(e.target.value)} onChange={(e) => setShares(e.target.value)}
@@ -167,7 +167,7 @@ export default function InvestPanel({ fundSlug, nav, userBalance, userShares, us
onClick={() => setShares(String(userShares))} onClick={() => setShares(String(userShares))}
className="text-xs text-indigo-400 hover:text-indigo-300 mt-1" className="text-xs text-indigo-400 hover:text-indigo-300 mt-1"
> >
Max ({userShares.toFixed(4)}) Max ({userShares.toFixed(6)})
</button> </button>
)} )}
</div> </div>