Allow group badge base 0

This commit is contained in:
Bill 2022-07-27 19:22:18 -04:00
parent 07fde6efe1
commit f41817c85e

View File

@ -1,3 +1,4 @@
export class GroupBadgePart export class GroupBadgePart
{ {
public static BASE: string = 'b'; public static BASE: string = 'b';
@ -18,7 +19,7 @@ export class GroupBadgePart
public get code(): string 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); return GroupBadgePart.getCode(this.type, this.key, this.color, this.position);
} }