-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
fix: incorrect currency displayed in profiledropdown #4135
Conversation
SUCCESS @Jarsen136 PR for issue #4056 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime! |
✅ Deploy Preview for koda-nuxt ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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 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.
PLease DRY
{{ $t('Floor') }} : | ||
<TokenMoney | ||
v-if="tokenId" | ||
:value="collectionFloorPrice" | ||
:token-id="tokenId" | ||
:prefix="urlPrefix" | ||
inline /> | ||
<Money | ||
v-else | ||
:value="collectionFloorPrice" | ||
inline | ||
data-cy="collection-floor-price" /> |
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.
Unify under one component (check AccountBalance.vue)
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.
Ok, I made a CommonTokenMoney Component.
@@ -18,4 +19,8 @@ export default class PrefixMixin extends Vue { | |||
get isMoonriver(): boolean { | |||
return this.urlPrefix === 'movr' | |||
} | |||
|
|||
get tokenId() { | |||
return getKusamaAssetId(this.urlPrefix) |
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.
getKusamaAssetId
should handle also other chains
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.
For now, the CommonTokenMoney
could handle both rmrk\bsx\snek
chains. What else chain should I add? 👀
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.
in the future there will be movr/glmr and astar
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 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.
return zero for now please
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.
or better we can define that in the chain config :)
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.
OK, I will check.
@@ -0,0 +1,26 @@ | |||
<template> | |||
<TokenMoney | |||
v-if="tokenId" |
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.
tokenId isnt prop?
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.
tokenId is from PrefixMixin
rather than the props
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.
tokenId is props now
Code Climate has analyzed commit 974b41d and detected 0 issues on this pull request. View more on Code Climate. |
on bsx: on rmrk: It seem related to #3868 |
hmm so till then I guess we can merge it? |
let's see pay 50 |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR type
What's new?
Before submitting Pull Request, please make sure:
Optional
Had issue bounty label?
Community participation
Screenshot
BSX: