Browse Source

fix tofixed error

feature/buyorders
Phillip Lang Martinez 2 months ago
parent
commit
9777550741
  1. 17
      src/App.tsx

17
src/App.tsx

@ -719,7 +719,7 @@ function App() {
</CopyToClipboard> </CopyToClipboard>
<Spacer height="10px" /> <Spacer height="10px" />
{ltcBalanceLoading && <CircularProgress color="success" size={16} />} {ltcBalanceLoading && <CircularProgress color="success" size={16} />}
{ltcBalance && !ltcBalanceLoading && ( {ltcBalance && !isNaN(+ltcBalance) && !ltcBalanceLoading && (
<Box sx={{ <Box sx={{
gap: '10px', gap: '10px',
display: 'flex', display: 'flex',
@ -733,7 +733,7 @@ function App() {
fontWeight: 700, fontWeight: 700,
}} }}
> >
{ltcBalance?.toFixed(5)} LTC {ltcBalance} LTC
</TextP> </TextP>
<RefreshIcon onClick={getLtcBalanceFunc} sx={{ <RefreshIcon onClick={getLtcBalanceFunc} sx={{
fontSize: '16px', fontSize: '16px',
@ -776,7 +776,7 @@ function App() {
fontWeight: 700, fontWeight: 700,
}} }}
> >
{balance?.toFixed(2)} QORT {balance} QORT
</TextP> </TextP>
)} )}
@ -891,7 +891,7 @@ function App() {
fontWeight: 700, fontWeight: 700,
}} }}
> >
{balance?.toFixed(2)} QORT {balance} QORT
</TextP> </TextP>
</Box> </Box>
<Spacer height="35px" /> <Spacer height="35px" />
@ -960,18 +960,19 @@ function App() {
<TextP <TextP
sx={{ sx={{
textAlign: "center", textAlign: "center",
lineHeight: "15px", lineHeight: "24px",
fontSize: "10px", fontSize: "20px",
fontWeight: 700,
}} }}
> >
{requestBuyOrder?.crosschainAtInfo?.qortAmount} QORT {+requestBuyOrder?.crosschainAtInfo?.qortAmount} QORT
</TextP> </TextP>
<Spacer height="15px" /> <Spacer height="15px" />
<TextP <TextP
sx={{ sx={{
textAlign: "center", textAlign: "center",
lineHeight: "15px", lineHeight: "15px",
fontSize: "10px", fontSize: "14px",
}} }}
> >
FOR FOR

Loading…
Cancel
Save