diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemLoginContent.kt b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemLoginContent.kt index ae0f58373..e57001219 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemLoginContent.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemLoginContent.kt @@ -104,7 +104,7 @@ fun VaultItemLoginContent( item { Spacer(modifier = Modifier.height(8.dp)) Fido2CredentialField( - creationDate = creationDate.toString(), + creationDate = creationDate.invoke(), modifier = Modifier .fillMaxWidth() .padding(horizontal = 16.dp), diff --git a/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemScreenTest.kt b/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemScreenTest.kt index 80e5be977..901f76f89 100644 --- a/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemScreenTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemScreenTest.kt @@ -1346,7 +1346,7 @@ class VaultItemScreenTest : BaseComposeTest() { } composeTestRule - .onNodeWithText(text = DEFAULT_PASSKEY.toString(), substring = true) + .onNodeWithText(text = "Created 3/13/24, 3:56 PM") .assertIsDisplayed() }