-
-
Notifications
You must be signed in to change notification settings - Fork 127
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: #1130, use gradesObj in TickButton instead of deprecated yds
property
#1193
Conversation
… `yds` property
@julianlam is attempting to deploy a commit to the openbeta-dev Team on Vercel. A member of the Team first needs to authorize it. |
@julianlam Would you mind filling in some details in this pr to include reproduction that you've done in the staging env and maybe some screenshots? @vnugent could you authorize a vercel deployment here? |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi @clintonlunn — done! It's worth noting here that my use of However, it is also worth noting that it seems odd to pass in all this extra data to the backend (specifically, |
@clintonlunn on staging the affected climb is Discovery, addressable via |
Yep, you can see that the Looks like submitting with an older climb has the grade correctly populated. It threw me a little that the This looks good to me and unblocks a lot of people! @vnugent It does seem like the yds property is deprecated and should be removed in a future issue. It's imported into a few components but doesn't seem to be doing anything. |
@vnugent May I get a PR review so this can be merged? 🙏 |
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.
Looks good to me. In the future we should see if we can refactor to avoid needing to put a .toString() on this prop.
Observed in Production
Reproduction in staging
The fix
yds
property, while unaffected climbs do.yds
is deprecatedTickForm
component is dynamically built when theTickButton
component is clicked.TickButton
component is rendered in the ClimbData page, and passes ingrade={yds}
, which isnull
on newer climbsGrade
object(?) which had a.toString()
method that worked on both Sport/Trad climbs and boulders. I updated the TickButton component to pass ingradesObj.toString()
instead ofyds