summaryrefslogtreecommitdiff
path: root/lib/vendors
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendors')
-rw-r--r--lib/vendors/validations.ts11
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") {