Skip to content

Commit 35b87f4

Browse files
Replace blank account name with null (#6158)
1 parent 7120eef commit 35b87f4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/manualcodeentry/ManualCodeEntryViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class ManualCodeEntryViewModel @Inject constructor(
147147
id = UUID.randomUUID().toString(),
148148
key = sanitizedCode,
149149
issuer = state.issuer,
150-
accountName = "",
150+
accountName = null,
151151
userId = null,
152152
type = if (isSteamCode) {
153153
AuthenticatorItemType.STEAM

authenticator/src/test/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/manualcodeentry/ManualCodeEntryViewModelTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class ManualCodeEntryViewModelTest : BaseViewModelTest() {
161161
id = "mockUUID",
162162
key = "ABCD",
163163
issuer = "mockIssuer",
164-
accountName = "",
164+
accountName = null,
165165
userId = null,
166166
favorite = false,
167167
type = AuthenticatorItemType.TOTP,
@@ -182,7 +182,7 @@ class ManualCodeEntryViewModelTest : BaseViewModelTest() {
182182
id = "mockUUID",
183183
key = "ABCD",
184184
issuer = "mockIssuer",
185-
accountName = "",
185+
accountName = null,
186186
userId = null,
187187
favorite = false,
188188
type = AuthenticatorItemType.TOTP,
@@ -258,7 +258,7 @@ class ManualCodeEntryViewModelTest : BaseViewModelTest() {
258258
id = "mockUUID",
259259
key = "ABCD",
260260
issuer = "mockIssuer",
261-
accountName = "",
261+
accountName = null,
262262
userId = null,
263263
favorite = false,
264264
type = AuthenticatorItemType.TOTP,
@@ -281,7 +281,7 @@ class ManualCodeEntryViewModelTest : BaseViewModelTest() {
281281
id = "mockUUID",
282282
key = "ABCD",
283283
issuer = "mockIssuer",
284-
accountName = "",
284+
accountName = null,
285285
userId = null,
286286
favorite = false,
287287
type = AuthenticatorItemType.TOTP,
@@ -354,7 +354,7 @@ class ManualCodeEntryViewModelTest : BaseViewModelTest() {
354354
id = "mockUUID",
355355
key = "ABCD",
356356
issuer = "mockIssuer",
357-
accountName = "",
357+
accountName = null,
358358
userId = null,
359359
favorite = false,
360360
type = AuthenticatorItemType.STEAM,
@@ -377,7 +377,7 @@ class ManualCodeEntryViewModelTest : BaseViewModelTest() {
377377
id = "mockUUID",
378378
key = "ABCD",
379379
issuer = "mockIssuer",
380-
accountName = "",
380+
accountName = null,
381381
userId = null,
382382
favorite = false,
383383
type = AuthenticatorItemType.STEAM,

0 commit comments

Comments
 (0)