Skip to content
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

Correcting sample code snippet in Tutorial 5 #1108

Merged
merged 4 commits into from
Oct 25, 2023

Conversation

sssurvey
Copy link
Contributor

In Tutorial5.md, there was an oversight in the code example for WelcomeWorkflow#onLogin. The example incorrectly included the isNotEmpty() check before it was supposed to be added by the developer. Additionally, it had an incorrect variable name, state.name, which has been corrected to state.username.

This pull request removes the isNotEmpty() check and makes the necessary variable name correction.

Thank you!

@sssurvey sssurvey requested review from zach-klippenstein and a team as code owners September 10, 2023 03:28
@@ -75,9 +75,7 @@ object WelcomeWorkflow : StatefulWorkflow<Unit, State, LoggedIn, WelcomeScreen>(
}
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like more needs to be changed here. This is still using name rather than username

Copy link
Contributor Author

@sssurvey sssurvey Sep 21, 2023

Choose a reason for hiding this comment

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

Yes @steve-the-edwards you are right, updated with username just now. I also forget to update line 323, it is now updated as well. Thanks!

@steve-the-edwards steve-the-edwards force-pushed the update-tutorial-5-to-correct-minor-errors branch from 0300e95 to 4082ace Compare October 24, 2023 14:33
@rjrjr rjrjr enabled auto-merge October 24, 2023 20:12
@steve-the-edwards steve-the-edwards force-pushed the update-tutorial-5-to-correct-minor-errors branch from 4082ace to 3469ab4 Compare October 24, 2023 21:15
@rjrjr rjrjr disabled auto-merge October 25, 2023 17:56
@rjrjr rjrjr merged commit a073005 into square:main Oct 25, 2023
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