diff --git a/src/app/pages/account/account.component.ts b/src/app/pages/account/account.component.ts index 125c88d..bdd91b9 100644 --- a/src/app/pages/account/account.component.ts +++ b/src/app/pages/account/account.component.ts @@ -78,17 +78,17 @@ export class AccountComponent implements OnInit { params: [] }, RpcService.authService, true) )).data - if (additionalInfo.refSystem?.code.length) { - this.messageService.add({ - severity: 'custom', - summary: - 'Вы уже зарегестрированы в реферальной программе!', - }); - return; - } this.route.queryParams.subscribe((params) => { console.log('####: ', params) if (params['refUserId']) { + if (additionalInfo.refSystem?.code.length) { + this.messageService.add({ + severity: 'custom', + summary: + 'Вы уже зарегестрированы в реферальной программе!', + }); + return; + } this.refSystemId = params['refUserId']; this.jsonRpcService .rpc(