diff --git a/src/app/modules/beteran/component/home.component.ts b/src/app/modules/beteran/component/home.component.ts index 8e55eba..b5c9672 100644 --- a/src/app/modules/beteran/component/home.component.ts +++ b/src/app/modules/beteran/component/home.component.ts @@ -250,6 +250,12 @@ export class HomeComponent implements OnInit { // selectType = SignInComposeComponent; return; break; + case ComposeMenuType.signIn: + selectType = SignUpComposeComponent; + break; + case ComposeMenuType.signup: + selectType = SignUpComposeComponent; + break; case ComposeMenuType.deposit: selectType = DepositComposeComponent; break; diff --git a/src/app/modules/beteran/compose/compose/sign-up-compose.component.html b/src/app/modules/beteran/compose/compose/sign-up-compose.component.html index 3277942..e28dbdf 100644 --- a/src/app/modules/beteran/compose/compose/sign-up-compose.component.html +++ b/src/app/modules/beteran/compose/compose/sign-up-compose.component.html @@ -54,7 +54,7 @@ ?.hasError('notExistReferalCode') " > - 추천인 코드는 필수 입력입니다. + 추천인 코드를 확인해주세요. diff --git a/src/app/modules/beteran/compose/compose/sign-up-compose.component.ts b/src/app/modules/beteran/compose/compose/sign-up-compose.component.ts index 0df472c..f3d110c 100644 --- a/src/app/modules/beteran/compose/compose/sign-up-compose.component.ts +++ b/src/app/modules/beteran/compose/compose/sign-up-compose.component.ts @@ -164,8 +164,9 @@ export class SignUpComposeComponent implements OnInit { __checkReferrerCode(event: FocusEvent): void { const code = this.signupComposeForm.get('referalCode')?.value; + this._memberReferrerService.getMemberReferrerByCode(code).then((result) => { - if (!result) { + if (!result.getMemberReferrer()) { this.signupComposeForm ?.get('referalCode') ?.setErrors({ notExistReferalCode: true });