aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils/CanvasProgressBar.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/CanvasProgressBar.ts')
-rw-r--r--src/lib/utils/CanvasProgressBar.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/CanvasProgressBar.ts b/src/lib/utils/CanvasProgressBar.ts
index 521a444..cd86532 100644
--- a/src/lib/utils/CanvasProgressBar.ts
+++ b/src/lib/utils/CanvasProgressBar.ts
@@ -6,7 +6,7 @@ export class CanvasProgressBar {
private readonly h: number;
private readonly color: string;
private percentage: number;
- private p: number;
+ private p?: number;
private ctx: CanvasRenderingContext2D;
public constructor(
@@ -18,7 +18,7 @@ export class CanvasProgressBar {
({ x: this.x, y: this.y, width: this.w, height: this.h } = dimension);
this.color = color;
this.percentage = percentage;
- this.p;
+ this.p = undefined;
this.ctx = ctx;
}