gas cost estimates for small values
This commit is contained in:
@@ -117,7 +117,9 @@ export function SwapReviewModal({
|
||||
{gasEstimate && (
|
||||
<div className="flex justify-between text-sm">
|
||||
<span className="text-muted-foreground">Network Fee</span>
|
||||
<span className="font-medium">${gasEstimate.estimatedCostUsd}</span>
|
||||
<span className="font-medium">
|
||||
{gasEstimate.estimatedCostUsd.startsWith('<') ? gasEstimate.estimatedCostUsd : `$${gasEstimate.estimatedCostUsd}`}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user