From f41817c85e4feb2b82cb4730e98a93aa6124e714 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 27 Jul 2022 19:22:18 -0400 Subject: [PATCH] Allow group badge base 0 --- src/api/groups/GroupBadgePart.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/groups/GroupBadgePart.ts b/src/api/groups/GroupBadgePart.ts index 3e24ed6f..3b74875f 100644 --- a/src/api/groups/GroupBadgePart.ts +++ b/src/api/groups/GroupBadgePart.ts @@ -1,3 +1,4 @@ + export class GroupBadgePart { public static BASE: string = 'b'; @@ -18,7 +19,7 @@ export class GroupBadgePart public get code(): string { - if(this.key === 0) return null; + if((this.key === 0) && (this.type !== GroupBadgePart.BASE)) return null; return GroupBadgePart.getCode(this.type, this.key, this.color, this.position); }