Skip to content

Commit 955b678

Browse files
sssurveysteve-the-edwards
authored andcommitted
corrected: if check should not be there at current step in tutorial
1 parent 7a60e09 commit 955b678

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

samples/tutorial/Tutorial5.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ object WelcomeWorkflow : StatefulWorkflow<Unit, State, LoggedIn, WelcomeScreen>(
7575
}
7676

7777
internal fun onLogin() = action {
78-
if (state.name.isNotEmpty()) {
79-
setOutput(LoggedIn(state.name))
80-
}
78+
setOutput(LoggedIn(state.username))
8179
}
8280
}
8381
```

0 commit comments

Comments
 (0)