-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim trailing zeroes #11068
Trim trailing zeroes #11068
Conversation
applied to all displayed price values
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I just rechecked #10230 and found that it happened when you listed some NFT. Could you also fix it there? ![]() |
@Jarsen136 good catch. Aside from |
cc @uDaiko |
@hassnian I used the function you mentioned, please have a look. It's working however I noticed that leaving the roundBy parameter blank as you suggested results in unreliable rounds from 0.3999 to 0.4. Would probably make sense to just add 4 round to the function calls |
components/common/listingCart/multipleItemsCart/ListingCartItem.vue
Outdated
Show resolved
Hide resolved
components/common/listingCart/singleItemCart/ListingCartSingleItemCart.vue
Outdated
Show resolved
Hide resolved
@uDaiko that's fine, if for some reason you don't need the rounding and you need to show the exact number you can add a optional logic to ![]() |
Well the rounding is already in place in the composable. I was thinking of just passing computed(() => 4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a couple of edge cases that need covering , but this is working fine
let's keep it simple, reverted to a prev version 405b0f7
@Jarsen136 code changed a bit pls re-review ty
Thank u @uDaiko ! |
|
Thank you for your contribution to the Koda - Generative Art Marketplace.
After I stumpled upon this, as discussed in #10230
👇 __ Let's make a quick check before the contribution.
PR Type
Needs QA check
Context
Screenshot 📸