From 5ac08e06d9d588ae77d6cf9d01acd153dd4670bc Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Thu, 5 Jan 2023 15:14:27 +0100 Subject: [PATCH] fix: when health is 0 we should not show 100 (#2833) --- src/lib/db/project-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/db/project-store.ts b/src/lib/db/project-store.ts index 7467bc715d..8a438d012c 100644 --- a/src/lib/db/project-store.ts +++ b/src/lib/db/project-store.ts @@ -419,7 +419,7 @@ class ProjectStore implements IProjectStore { name: row.name, description: row.description, createdAt: row.created_at, - health: row.health || 100, + health: row.health ?? 100, updatedAt: row.updated_at || new Date(), }; }