diff --git a/src/components/app-main/AppMainElement.ts b/src/components/app-main/AppMainElement.ts index 64b19d0..4f09b2d 100644 --- a/src/components/app-main/AppMainElement.ts +++ b/src/components/app-main/AppMainElement.ts @@ -130,10 +130,12 @@ class AppMainElement extends HTMLElement { checkSubscriptions = async () => { if (this.isAuth && !this.subscriptionChecked) { const checked = await this.transactionsService.check({ sortBy: 'transactionDate asc', rpp: 10 }); - this.createModal('transaction-check', { - data: checked, - autoInit: false, - }); + if (checked?.totalRecords) { + this.createModal('transaction-check', { + data: checked, + autoInit: false, + }); + } this.subscriptionChecked = true; this.removeEventListener('routechanged', this.checkSubscriptions); }