Skip to content

Conversation

@DreXuri
Copy link
Contributor

@DreXuri DreXuri commented Dec 9, 2023

No description provided.

@DreXuri
Copy link
Contributor Author

DreXuri commented Dec 9, 2023

@moak13 @ikennaumeh

Copy link
Owner

@moak13 moak13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are some concerns to look out for, Thanks.


final response = await _dishService.createDish(info);

if (response != null) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, actually for this, you need to take care of the null, it's something that can happen and we need to let the user know that an unknown error has occurred. Using the negative first approach to building the success area in a try-and-catch block helps solve a lot in the mobile space.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡

@@ -41,6 +41,7 @@ class SignupViewModel extends FormViewModel {
await _dialogService.showDialog(
description: "Account created successfully.",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we are using l10n for our texts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants