Skip to content

Commit

Permalink
Merge branch 'main' into chore/ui/switch
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo authored Dec 4, 2023
2 parents 5230d9c + b997bfb commit 0d05820
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const disabled = computed(() => !isLogIn.value)
const priceUSD = computed(() => {
const { nfts, royalties } = totalPriceUsd(items.value)
return (nfts + royalties).toFixed(2)
return (nfts + royalties).toFixed(1)
})
const onClose = () => {
Expand Down
2 changes: 1 addition & 1 deletion components/common/shoppingCart/ShoppingCartModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const numberOfItems = computed(() => items.value.length)
const priceUSD = computed(() => {
const { nfts, royalties } = totalPriceUsd(items.value)
return (nfts + royalties).toFixed(2)
return (nfts + royalties).toFixed(1)
})
const isOpen = computed({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ watchEffect(async () => {
)
const price = roundTo(tokenAmount, 4)
priceChain.value = `${price} ${chainSymbol.value}`
priceUsd.value = `${roundTo(tokenAmount * tokenPrice, 4)}`
priceUsd.value = `${roundTo(tokenAmount * tokenPrice, 1)}`
}
})
</script>
Expand Down
2 changes: 1 addition & 1 deletion composables/useMigrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function useMigrateDeposit(
const totalChainUsd = computed(() => {
const amount =
parseFloat(totalChain.value.toString()) * chainTokenPrice.value
return parseFloat(amount.toString()).toFixed(2)
return parseFloat(amount.toString()).toFixed(1)
})

return {
Expand Down
2 changes: 1 addition & 1 deletion utils/calculation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function calculateExactUsdFromToken(
token: number,
price: number,
): number {
return Number((token * price).toFixed(2))
return Number((token * price).toFixed(1))
}

export function calculateTokenFromUsd(tokenPrice: number, usd: number): number {
Expand Down

0 comments on commit 0d05820

Please sign in to comment.