Skip to content

Commit

Permalink
fixes #13680
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitGupta200 committed Sep 13, 2024
1 parent 07289b4 commit 8c6fd33
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,13 @@ internal class UsernameEditViewModel private constructor(private val mode: Usern
UsernameStatus.TAKEN
}

uiState.update { State(ButtonState.SUBMIT_DISABLED, status, UsernameState.NoUsername) }
uiState.update {
State(
ButtonState.SUBMIT_DISABLED,
status,
usernameState = UsernameState.CaseChange(Username("${state.nickname}${Usernames.DELIMITER}$discriminator"))
)
}
}

UsernameSetResult.NETWORK_ERROR -> {
Expand Down

0 comments on commit 8c6fd33

Please sign in to comment.