summaryrefslogtreecommitdiff
path: root/components/signup/join-form.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/signup/join-form.tsx')
-rw-r--r--components/signup/join-form.tsx12
1 files changed, 8 insertions, 4 deletions
diff --git a/components/signup/join-form.tsx b/components/signup/join-form.tsx
index c94d435e..2dcde518 100644
--- a/components/signup/join-form.tsx
+++ b/components/signup/join-form.tsx
@@ -386,7 +386,7 @@ export default function JoinForm() {
address: "",
email: "",
phone: "",
- country: "KR", // 기본값을 한국으로 설정
+ country: "", // 기본값을 빈 문자열로 설정하여 계정 데이터에서 가져오도록 함
website: "",
representativeName: "",
representativeBirth: "",
@@ -545,7 +545,11 @@ export default function JoinForm() {
{currentStep === 3 && (
<VendorStep
- data={vendorData}
+ data={{
+ ...vendorData,
+ // 업체 국가가 설정되지 않았다면 계정의 국가를 사용
+ country: vendorData.country || accountData.country,
+ }}
onChange={setVendorData}
onBack={() => setCurrentStep(2)}
onComplete={() => {
@@ -897,7 +901,7 @@ function CompleteVendorForm({
if (data.country !== "KR") {
bankAccountFiles.forEach(file => {
- formData.append('bankAccount', file);
+ formData.append('bankAccountCopy', file);
});
}
@@ -1009,7 +1013,7 @@ function CompleteVendorForm({
disabled={isSubmitting}
/>
<p className="text-xs text-gray-500 mt-1">
- {data.country === "KR"
+ {(data.country || accountData.country) === "KR"
? "사업자 등록증에 표기된 정확한 회사명을 입력하세요."
: "해외 업체의 경우 영문 회사명을 입력하세요."}
</p>