diff --git a/SCard/Classes/Modules/SCKYCEnterPhone/SCKYCEnterPhoneViewModel.swift b/SCard/Classes/Modules/SCKYCEnterPhone/SCKYCEnterPhoneViewModel.swift index 1f7dce9..1f302b5 100644 --- a/SCard/Classes/Modules/SCKYCEnterPhone/SCKYCEnterPhoneViewModel.swift +++ b/SCard/Classes/Modules/SCKYCEnterPhone/SCKYCEnterPhoneViewModel.swift @@ -42,8 +42,9 @@ final class SCKYCEnterPhoneViewModel { } func onInput(text: String) { - phoneNumber = selectedCountry.dialCode + text - if text.isEmpty { + let cleanText = text.first == "0" ? String(text.dropFirst(1)) : text + phoneNumber = selectedCountry.dialCode + cleanText + if cleanText.isEmpty { onUpdateUI?(R.string.soraCard.commonNoSpam(preferredLanguages: .currentLocale), false) } else { if phoneNumber ~= Self.phoneNumberRegex {