diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-11 09:00:38 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-11 09:00:38 +0000 |
| commit | eb654f88214095f71be142b989e620fd28db3f69 (patch) | |
| tree | aaad3074de4a6422a880b35f9e577d489b0a6c91 /lib/vendors/validations.ts | |
| parent | a383fd2a30f60360ebc0c1b897b3d43cbae178fa (diff) | |
(최겸) 기술영업 변경사항 반영, PQ/실사 변경사항 반영
Diffstat (limited to 'lib/vendors/validations.ts')
| -rw-r--r-- | lib/vendors/validations.ts | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/vendors/validations.ts b/lib/vendors/validations.ts index 681bac62..ecadd67a 100644 --- a/lib/vendors/validations.ts +++ b/lib/vendors/validations.ts @@ -10,7 +10,6 @@ import * as z from "zod" import { getFiltersStateParser, getSortingStateParser } from "@/lib/parsers" import { Vendor, VendorContact, VendorItemsView, VendorMaterialsView, vendors, VendorWithType } from "@/db/schema/vendors"; import { rfqs } from "@/db/schema/rfq" -import { countryDialCodes } from "@/components/signup/join-form"; export const searchParamsCache = createSearchParamsCache({ @@ -255,16 +254,6 @@ export const createVendorSchema = z }) .superRefine((data, ctx) => { // Validate main phone number with country code - if (data.phone && data.country) { - if (!validatePhoneByCountry(data.phone, data.country)) { - const countryDialCode = countryDialCodes[data.country] || "+XX"; - ctx.addIssue({ - code: "custom", - path: ["phone"], - message: `올바른 전화번호 형식이 아닙니다. ${countryDialCode}로 시작하는 국제 전화번호를 입력해주세요. (예: ${countryDialCode}XXXXXXXXX)`, - }); - } - } // Validate representative phone for Korean companies if (data.country === "KR") { |
