Skip to content

Commit

Permalink
Fix typos in generator actions (#4310)
Browse files Browse the repository at this point in the history
  • Loading branch information
dseverns-livefront authored Nov 15, 2024
1 parent d125fab commit 1b0bc13
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class GeneratorViewModel @Inject constructor(
handleUpdateGeneratedPassphraseResult(action)
}

is GeneratorAction.Internal.UpdateGeneratedPlusAddessedUsernameResult -> {
is GeneratorAction.Internal.UpdateGeneratedPlusAddressedUsernameResult -> {
handleUpdatePlusAddressedGeneratedUsernameResult(action)
}

Expand Down Expand Up @@ -676,7 +676,7 @@ class GeneratorViewModel @Inject constructor(
}

private fun handleUpdatePlusAddressedGeneratedUsernameResult(
action: GeneratorAction.Internal.UpdateGeneratedPlusAddessedUsernameResult,
action: GeneratorAction.Internal.UpdateGeneratedPlusAddressedUsernameResult,
) {
when (val result = action.result) {
is GeneratedPlusAddressedUsernameResult.Success -> {
Expand Down Expand Up @@ -809,7 +809,7 @@ class GeneratorViewModel @Inject constructor(
handleMinSpecialChange(action)
}

is GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange -> {
is GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange -> {
handleToggleAmbiguousChars(action)
}
}
Expand Down Expand Up @@ -895,7 +895,7 @@ class GeneratorViewModel @Inject constructor(
}

private fun handleToggleAmbiguousChars(
action: GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange,
action: GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange,
) {
updatePasswordType { currentPasswordType ->
currentPasswordType.copy(
Expand Down Expand Up @@ -1440,7 +1440,7 @@ class GeneratorViewModel @Inject constructor(
email = plusAddressedEmail.email,
),
)
sendAction(GeneratorAction.Internal.UpdateGeneratedPlusAddessedUsernameResult(result))
sendAction(GeneratorAction.Internal.UpdateGeneratedPlusAddressedUsernameResult(result))
}

private suspend fun generateCatchAllEmail(catchAllEmail: CatchAllEmail) {
Expand Down Expand Up @@ -2264,7 +2264,7 @@ sealed class GeneratorAction {
* @property avoidAmbiguousChars Flag indicating whether ambiguous characters
* should be avoided.
*/
data class ToggleAvoidAmbigousCharactersChange(
data class ToggleAvoidAmbiguousCharactersChange(
val avoidAmbiguousChars: Boolean,
) : Password()
}
Expand Down Expand Up @@ -2519,7 +2519,7 @@ sealed class GeneratorAction {
/**
* Indicates a generated text update is received.
*/
data class UpdateGeneratedPlusAddessedUsernameResult(
data class UpdateGeneratedPlusAddressedUsernameResult(
val result: GeneratedPlusAddressedUsernameResult,
) : Internal()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ data class PasswordHandlers(
},
onPasswordToggleAvoidAmbiguousCharsChange = { shouldAvoidAmbiguousChars ->
viewModel.trySendAction(
GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange(
GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange(
avoidAmbiguousChars = shouldAvoidAmbiguousChars,
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ class GeneratorScreenTest : BaseComposeTest() {

verify {
viewModel.trySendAction(
GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange(
GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange(
avoidAmbiguousChars = true,
),
)
Expand Down Expand Up @@ -646,7 +646,7 @@ class GeneratorScreenTest : BaseComposeTest() {
),
)
viewModel.trySendAction(
GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange(
GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange(
avoidAmbiguousChars = true,
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ class GeneratorViewModelTest : BaseViewModelTest() {
val avoidAmbiguousChars = true

viewModel.trySendAction(
GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange(
GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange(
avoidAmbiguousChars = avoidAmbiguousChars,
),
)
Expand Down

0 comments on commit 1b0bc13

Please sign in to comment.