Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Kalderstam <jonas@cowboyprogrammer.org>
  • Loading branch information
spacecowboy committed Jan 27, 2025
1 parent a7bcf6b commit a8f4d2c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,22 @@ class SyncScreenViewModel(
fun setSyncCode(value: String) {
val possibleUrlCode = value.syncCodeQueryParam

val syncCode =
val code =
if (possibleUrlCode.length == 64) {
possibleUrlCode
} else {
value
}

state["syncCode"] = syncCode
syncCode.update { syncCode }
state["syncCode"] = code
syncCode.update { code }
}

fun setSecretKey(value: String) {
val secretKey = value.secretKeyQueryParam
val key = value.secretKeyQueryParam

state["secretKey"] = secretKey
secretKey.update { secretKey }
state["secretKey"] = key
secretKey.update { key }
}

fun setScreen(value: SyncScreenToShow) {
Expand Down

0 comments on commit a8f4d2c

Please sign in to comment.