From fdbb9c3cd69f8a4924ae42133c30d9aa941f20e4 Mon Sep 17 00:00:00 2001 From: theADAMJR Date: Mon, 27 Apr 2020 20:20:41 +0100 Subject: [PATCH] release --- src/app/guards/guild-auth.guard.ts | 3 ++- src/assets/docs/changelog.md | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/app/guards/guild-auth.guard.ts b/src/app/guards/guild-auth.guard.ts index 6e98d3b..d0599a2 100644 --- a/src/app/guards/guild-auth.guard.ts +++ b/src/app/guards/guild-auth.guard.ts @@ -14,6 +14,7 @@ export class GuildAuthGuard implements CanActivate { next: ActivatedRouteSnapshot, state: RouterStateSnapshot) { const guildId = next.paramMap.get('id'); - return this.guildService.guilds?.some(g => g.id === guildId); + return !this.guildService.guilds || + this.guildService.guilds.some(g => g.id === guildId); } } diff --git a/src/assets/docs/changelog.md b/src/assets/docs/changelog.md index 4d40c06..ee2c6e5 100644 --- a/src/assets/docs/changelog.md +++ b/src/assets/docs/changelog.md @@ -7,16 +7,16 @@ ![v0.1.0b Dashboard](assets/docs/img/dashboard-v0.1.0b.png) ## Bot v0.1.0b -+ guild overview charts -+ leaderboard routes now -> `/leaderboard/:guildId` -+ added more documentation -+ dashboard widgets + command overrides + command logs -* localized image assets for safer loading * refactored command handler code ## Dashboard v0.1.0b ++ guild overview charts ++ dashboard widgets ++ leaderboard routes now -> `/leaderboard/:guildId` ++ added more documentation +* localized image assets for safer loading ---