Skip to content

Commit

Permalink
merge :: 전화번호 하이픈 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
eejx0 authored Nov 7, 2024
2 parents a5240fd + 31913f3 commit ea560c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/company/src/app/registration/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ export default function Registration() {
manager_name: myCompanyInfo?.manager_name || "",
company_profile_url: myCompanyInfo?.company_logo_url,
headquarter: myCompanyInfo?.headquarter || false,
manager_phone_no: myCompanyInfo?.manager_phone_no || "",
manager_phone_no: regex.phone_number(
myCompanyInfo?.manager_phone_no || ""
),
},
});
const { toast } = useToast();
Expand Down Expand Up @@ -191,6 +193,7 @@ export default function Registration() {
const onSubmit: SubmitHandler<ICompanyRegisterRequest> = data => {
const {
representative_phone_no,
manager_phone_no,
sub_address_detail,
sub_zip_code,
take,
Expand All @@ -201,6 +204,7 @@ export default function Registration() {

const requests = {
representative_phone_no: representative_phone_no.replaceAll("-", ""),
manager_phone_no: manager_phone_no.replaceAll("-", ""),
sub_zip_code: sub_zip_code || undefined,
sub_address_detail: sub_address_detail || undefined,
take: +take.toString().replaceAll(",", ""),
Expand Down Expand Up @@ -608,6 +612,7 @@ export default function Registration() {
)}
/>
</InputTemplate>
,
</Flex>,
<InputTemplate key="email" title="이메일" required>
<Controller
Expand Down

0 comments on commit ea560c1

Please sign in to comment.