1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

fix: when health is 0 we should not show 100 (#2833)

This commit is contained in:
Mateusz Kwasniewski 2023-01-05 15:14:27 +01:00 committed by GitHub
parent 711c867ccc
commit 5ac08e06d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),
};
}