-
Notifications
You must be signed in to change notification settings - Fork 4
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
ENG-5594 fix(launchpad): fix validation errors in create step #1066
ENG-5594 fix(launchpad): fix validation errors in create step #1066
Conversation
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! Remove the console logs and then we're good!
}) | ||
return false | ||
} | ||
// TODO: Figure out why validation isn't working in this block |
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.
Thanks for comment! We can think through it more
@@ -152,7 +161,31 @@ export function CreateStep({ onCreationSuccess }: CreateStepProps) { | |||
} | |||
|
|||
const handleDepositSubmit = async (data: DepositFormData) => { | |||
console.log('handleDepositSubmit called with data:', data) |
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.
Let's remove or use logger
+formatUnits(BigInt(atomCost ?? '0'), 18) + +data.amount | ||
).toString() | ||
|
||
console.log('Debug validation:', { |
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.
Same here
Affected Packages
Apps
Packages
Tools
Overview
Validation errors weren't rendering on the create step, specifically if a user had insufficient funds. Moved the check outside of the zod schema. Should revisit to figure out ideal pattern, just wanted to get this in to move QA forward.
Screen Captures
If applicable, add screenshots or screen captures of your changes.
Declaration