more build issues fixed

This commit is contained in:
sewmina7@gmail.com 2024-06-21 16:22:44 +05:30
parent 542584c2cb
commit 001738c275

View File

@ -51,7 +51,7 @@ const Modal: React.FC<{ isOpen: boolean; onClose: () => void; item: { username:
item.points > 0 ? 'text-green-500' : 'text-red-500' item.points > 0 ? 'text-green-500' : 'text-red-500'
}`} }`}
> >
Total Gains : {item.points.toFixed(2)} x Total Gains : {parseFloat(item.points.toString()).toFixed(2)} x
</p> </p>
</div> </div>
<div className="relative p-6 flex-auto"> <div className="relative p-6 flex-auto">
@ -64,10 +64,10 @@ const Modal: React.FC<{ isOpen: boolean; onClose: () => void; item: { username:
detail.gains > 0 ? 'text-green-500' : 'text-red-400' detail.gains > 0 ? 'text-green-500' : 'text-red-400'
}`} }`}
> >
{detail.token}: {detail.gains.toFixed(2)}x [ {detail.token}: {parseFloat(detail.gains.toString()).toFixed(2)}x [
{detail.price_at_creation.toFixed(8) + {parseFloat(detail.price_at_creation.toString()).toFixed(8) +
' => ' + ' => ' +
detail.price_now.toFixed(8)} parseFloat(detail.price_now.toString()).toFixed(8)}
] ]
</p> </p>
))} ))}