catch modal errors
@@ -43,6 +43,7 @@ export class GuildAdminDataComponent implements OnInit {
async onGuildDataDelete() {
this.validator = '';
+ try {
const res = await this.modals.open(this.modalConfirm, {
windowClass: 'dark-modal',
}).result;
@@ -73,5 +74,6 @@ export class GuildAdminDataComponent implements OnInit {
this.router.navigate(['/guilds']);
}
}
+ } catch {}
}
}
