From 347999ec5997becc7a95fc1e0569496a42c89065 Mon Sep 17 00:00:00 2001 From: Yannick Goossens Date: Wed, 27 Dec 2023 17:06:42 +0100 Subject: [PATCH] remove everything after the comma, see https://github.com/teia-community/teia-ui/issues/369 --- src/pages/objkt-display/tabs/Swap.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/objkt-display/tabs/Swap.jsx b/src/pages/objkt-display/tabs/Swap.jsx index f4b5824e6..7b751da6b 100644 --- a/src/pages/objkt-display/tabs/Swap.jsx +++ b/src/pages/objkt-display/tabs/Swap.jsx @@ -78,7 +78,7 @@ export const Swap = () => { console.debug( address, nft.royalties_total, - parseFloat(price) * 1000000, + (price * 1000000).toFixed(0), id, nft.artist_address, parseFloat(amount) @@ -86,7 +86,7 @@ export const Swap = () => { console.log([ address, nft.royalties_total, - parseFloat(price) * 1e6, + (price * 1e6).toFixed(0), id, nft.artist_address, parseFloat(amount), @@ -96,7 +96,7 @@ export const Swap = () => { await swap( address, nft.royalties_total / 1000, - parseFloat(price) * 1e6, + (price * 1e6).toFixed(0), id, nft.artist_address, parseFloat(amount)