diff --git a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts index 06916af0..0ff1b622 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts @@ -110,14 +110,14 @@ export class TopBarComponent implements OnInit, OnDestroy { this.weblink = urlInfo.webLink.filter( weblink => - urlInfo.webLinkAllowedList.filter(type => type === weblink.key) - .length > 0 + urlInfo.webLinkAllowedList + .filter( + type => type !== 'WebLinkMailCnt' && type !== 'WebLinkPaymentCnt' + ) + .filter(type => type === weblink.key).length > 0 ); - if ( - urlInfo.webLinkAllowedList.indexOf('WebLinkMail') > -1 && - urlInfo.webLinkAllowedList.indexOf('WebLinkMailCnt') > -1 - ) { + if (urlInfo.webLinkAllowedList.indexOf('WebLinkMail') > -1) { // 메일 카운트 체크. const link = urlInfo.webLink.filter( weblink => weblink.key === 'WebLinkMailCnt' @@ -149,10 +149,7 @@ export class TopBarComponent implements OnInit, OnDestroy { .subscribe(); } } - if ( - urlInfo.webLinkAllowedList.indexOf('WebLinkPayment') > -1 && - urlInfo.webLinkAllowedList.indexOf('WebLinkPaymentCnt') > -1 - ) { + if (urlInfo.webLinkAllowedList.indexOf('WebLinkPayment') > -1) { // 결제 카운트 체크. const link = urlInfo.webLink.filter( weblink => weblink.key === 'WebLinkPaymentCnt'