fix: increase precision for shares display and input step in InvestPanel
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m26s
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m26s
This commit is contained in:
@@ -136,7 +136,7 @@ export default function InvestPanel({ fundSlug, nav, userBalance, userShares, us
|
||||
</div>
|
||||
{amountNum >= 1 && (
|
||||
<p className="text-xs text-slate-400">
|
||||
You'll receive ≈ <span className="text-white font-medium">{previewShares.toFixed(4)} shares</span>
|
||||
You'll receive ≈ <span className="text-white font-medium">{previewShares.toFixed(6)} shares</span>
|
||||
</p>
|
||||
)}
|
||||
<button
|
||||
@@ -154,7 +154,7 @@ export default function InvestPanel({ fundSlug, nav, userBalance, userShares, us
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
step="0.0001"
|
||||
step="0.000001"
|
||||
max={userShares}
|
||||
value={shares}
|
||||
onChange={(e) => setShares(e.target.value)}
|
||||
@@ -167,7 +167,7 @@ export default function InvestPanel({ fundSlug, nav, userBalance, userShares, us
|
||||
onClick={() => setShares(String(userShares))}
|
||||
className="text-xs text-indigo-400 hover:text-indigo-300 mt-1"
|
||||
>
|
||||
Max ({userShares.toFixed(4)})
|
||||
Max ({userShares.toFixed(6)})
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user