From fbeccb009dcb220845f99c4280a4c87e6c0528fa Mon Sep 17 00:00:00 2001 From: Shade Date: Tue, 4 Feb 2025 21:44:13 +0400 Subject: [PATCH] Decryption fix --- .../kotlin/ui/components/forms/passwordmgnt/PasswordForm.kt | 2 +- src/main/kotlin/ui/validators/PasswordFormValidator.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ui/components/forms/passwordmgnt/PasswordForm.kt b/src/main/kotlin/ui/components/forms/passwordmgnt/PasswordForm.kt index bd69bad..70fab94 100644 --- a/src/main/kotlin/ui/components/forms/passwordmgnt/PasswordForm.kt +++ b/src/main/kotlin/ui/components/forms/passwordmgnt/PasswordForm.kt @@ -231,7 +231,7 @@ fun PasswordForm( var selectedItems by remember { mutableStateOf(savedCategories) } LaunchedEffect(selectedItems) { - passwordCategory?.value?.value = selectedItems.joinToString(", ") { it.name } + passwordCategory?.value?.value = selectedItems.joinToString(",") { it.name } } MultiSelectDropdown( diff --git a/src/main/kotlin/ui/validators/PasswordFormValidator.kt b/src/main/kotlin/ui/validators/PasswordFormValidator.kt index c8d2058..fa62a40 100644 --- a/src/main/kotlin/ui/validators/PasswordFormValidator.kt +++ b/src/main/kotlin/ui/validators/PasswordFormValidator.kt @@ -87,7 +87,7 @@ fun toPasswordDto(formValidator: FormValidator, user: User): PasswordDto { formValidator.getField(PasswordFormFieldName.NAME)?.value?.value!!, formValidator.getField(PasswordFormFieldName.WEBSITE_URL)?.value?.value, formValidator.getField(PasswordFormFieldName.WEBSITE_ICON_URL)?.value?.value, - formValidator.getField(PasswordFormFieldName.PASSWORD_CATEGORY)?.value?.value, + formValidator.getField(PasswordFormFieldName.PASSWORD_CATEGORY)?.value?.value?.takeIf { it.isNotEmpty() }, user ) }