From 022a4beeddf6f1557f854c6ffec5ef69b1d5ff74 Mon Sep 17 00:00:00 2001 From: Biplab Dutta Date: Tue, 16 Sep 2025 00:46:18 +0530 Subject: [PATCH] feat(feature:auth): make address line 2 optional (#1937) --- .../src/commonMain/composeResources/values/strings.xml | 5 ++--- .../org/mifospay/feature/auth/signup/SignupViewModel.kt | 9 --------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/feature/auth/src/commonMain/composeResources/values/strings.xml b/feature/auth/src/commonMain/composeResources/values/strings.xml index 149ce425..4e232edf 100644 --- a/feature/auth/src/commonMain/composeResources/values/strings.xml +++ b/feature/auth/src/commonMain/composeResources/values/strings.xml @@ -23,7 +23,7 @@ or Ease my sign-up using Google Account Please enter a valid email address - All fields are mandatory. + All fields are mandatory except Address Line 2. Complete your registration @@ -33,7 +33,7 @@ Confirm Password Name of Business Address Line 1 - Address Line 2 + Address Line 2 (optional) Pin Code State Country @@ -69,7 +69,6 @@ The confirm password field cannot be empty. Passwords do not match. Please enter your address line 1. - Please enter your address line 2. Please enter your pin code. Please enter your country. Please enter your state. diff --git a/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/signup/SignupViewModel.kt b/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/signup/SignupViewModel.kt index d93a8c91..30828975 100644 --- a/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/signup/SignupViewModel.kt +++ b/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/signup/SignupViewModel.kt @@ -26,7 +26,6 @@ import kotlinx.serialization.Serializable import kotlinx.serialization.Transient import mobile_wallet.feature.auth.generated.resources.Res import mobile_wallet.feature.auth.generated.resources.feature_auth_error_address_line1_required -import mobile_wallet.feature.auth.generated.resources.feature_auth_error_address_line2_required import mobile_wallet.feature.auth.generated.resources.feature_auth_error_check_uniqueness_failed import mobile_wallet.feature.auth.generated.resources.feature_auth_error_confirm_password_required import mobile_wallet.feature.auth.generated.resources.feature_auth_error_country_required @@ -386,14 +385,6 @@ class SignupViewModel( } } - state.addressLine2Input.isEmpty() -> { - mutableStateFlow.update { - it.copy( - dialogState = DialogState.Error.ResourceMessage(Res.string.feature_auth_error_address_line2_required), - ) - } - } - state.pinCodeInput.isEmpty() -> { mutableStateFlow.update { it.copy(