Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Commit b040b40

Browse files
jhugmanElise Richards
authored andcommitted
Allow empty usernames (#1145)
1 parent ade612d commit b040b40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/mozilla/lockbox/store/ItemDetailStore.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ open class ItemDetailStore(
106106
opt.value?.let { old ->
107107
old.copy(
108108
hostname = hostname ?: old.hostname,
109-
username = if (!TextUtils.isEmpty(username)) username else old.username,
109+
username = username ?: old.username,
110110
password = password ?: old.password,
111111

112112
// This is only used in the create flow, so we're not

0 commit comments

Comments
 (0)