From e85b8c964a02f1058cd0e2eab8ce10af58d3eb41 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Mon, 23 Jan 2023 16:13:29 +0330 Subject: [PATCH] fix(soffit-pwa): cleanup form --- uniquely/soffit-pwa/src/lottery-form.ts | 5 +---- uniquely/soffit-pwa/tsconfig.json | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/uniquely/soffit-pwa/src/lottery-form.ts b/uniquely/soffit-pwa/src/lottery-form.ts index 20ccf418a..edf545ab9 100644 --- a/uniquely/soffit-pwa/src/lottery-form.ts +++ b/uniquely/soffit-pwa/src/lottery-form.ts @@ -1,6 +1,5 @@ import {customElement, AlwatrSmartElement, css, html, property} from '@alwatr/element'; import {serviceRequest} from '@alwatr/fetch'; -import {UnicodeDigits} from '@alwatr/math'; import {validator, type JsonSchema} from '@alwatr/validator'; import {config} from './tech-dep/config.js'; @@ -11,7 +10,6 @@ import '@alwatr/ui-kit/text-field/text-field.js'; import '@alwatr/ui-kit/button/button.js'; import './tech-dep/radio-group.js'; -const unicodeDigits = new UnicodeDigits('common', 'en'); declare global { interface HTMLElementTagNameMap { @@ -99,7 +97,6 @@ export class AlwatrLotteryForm extends AlwatrSmartElement { )) { data[inputElement.name] = inputElement.value; } - data.phone = unicodeDigits.translate(String(data.phone).replaceAll(' ', '')); return data; } @@ -108,7 +105,7 @@ export class AlwatrLotteryForm extends AlwatrSmartElement { return html`