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>
|
</div>
|
||||||
{amountNum >= 1 && (
|
{amountNum >= 1 && (
|
||||||
<p className="text-xs text-slate-400">
|
<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>
|
</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>
|
||||||
|
|||||||
Reference in New Issue
Block a user