-
Notifications
You must be signed in to change notification settings - Fork 192
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
feat: Buy
component
#1729
feat: Buy
component
#1729
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/buy/components/BuyMessage.tsx
Outdated
if (statusName !== 'error') { | ||
return null; | ||
// Missing required fields | ||
if (statusName === 'error' && statusData.code === 'TmBPc05') { |
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.
any reason to not just always show the error.message on errors?
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 other components we only show Something went wrong...
so i'm keeping consistent for now and will investigate better errors in follow up but it might be something we want to change for all our components.
src/buy/components/BuyTokenItem.tsx
Outdated
<button | ||
className={cn( | ||
'flex items-center gap-2 rounded-lg p-2', | ||
!hasInsufficientBalance, |
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.
what is this doing?
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.
nothing removing
What changed? Why?
Notes to reviewers
How has it been tested?