-
Notifications
You must be signed in to change notification settings - Fork 41
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
fixes: user and webmail auth flow #203
base: main
Are you sure you want to change the base?
Conversation
'Fest Registration', | ||
style: interTextTheme.headline2, | ||
'Register with a Mobile Number', | ||
style: interTextTheme.headline2!.copyWith(fontSize: SizeConfig.screenWidth! * 0.058), |
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.
use logical pixels
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.
removing the code is better than commenting on it unless you think it might be used again in the future. I think you can remove the entire section.
mode: ToastMode.Error, | ||
title: error, | ||
); | ||
if(error.contains("Unique constraint failed on the constraint: `User_mobile_key`") && error.contains("Invalid `prisma.user.create()`")) { |
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.
I'm a bit skeptical about this. Ideally you shouldn't use strings for performing checks, backend must send a well-formatted error response. Try to get it changed from the backend.
fixes for #197