@touchpoll/tp-survey 0.0.39 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174,11 +174,11 @@ const answerODValidator = (minValue, maxValue) => (control) => {
174
174
  };
175
175
  const answerOLValidator = (isPhoneNumber, canSkip) => (control) => {
176
176
  const text = typeof control.value !== 'string' ? '' : control.value.trim();
177
- //Нужно чтобы в поле ввели хоть что-то.
177
+ //Нужно, чтобы в поле ввели хоть что-то.
178
178
  if (text.length === 0 && !canSkip) {
179
179
  return { answerOlAnswerError: true };
180
180
  }
181
- if (isPhoneNumber && !canSkip) {
181
+ if (isPhoneNumber) {
182
182
  const res = text.length === 9 && !isNaN(Number(text));
183
183
  if (!res) {
184
184
  return { answerOlTelephoneFormatError: true };