From 1ee13ab73ddae4d5babc24adce106c994338caa2 Mon Sep 17 00:00:00 2001 From: gofnnp Date: Fri, 30 Sep 2022 13:07:02 +0400 Subject: [PATCH] =?UTF-8?q?dev=20#12618=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D1=83=20=D0=BD=D0=B0=20=D1=81=D1=83=D1=89=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D0=B2=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B2=20=D1=80?= =?UTF-8?q?=D0=B5=D1=84=D0=B5=D1=80=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B9=20?= =?UTF-8?q?=D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/account/account.component.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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(