From c14d551878634df44d4dbf129cd57b8d57ec22bc Mon Sep 17 00:00:00 2001 From: Fadhlan Ridhwanallah Date: Thu, 5 Dec 2024 22:17:06 +0700 Subject: [PATCH] fix host test --- packages/host/app/components/operator-mode/code-submode.gts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/host/app/components/operator-mode/code-submode.gts b/packages/host/app/components/operator-mode/code-submode.gts index c3b4f6e611..d089005db7 100644 --- a/packages/host/app/components/operator-mode/code-submode.gts +++ b/packages/host/app/components/operator-mode/code-submode.gts @@ -175,7 +175,7 @@ export default class CodeSubmode extends Component { : null; let sum = (obj: Record) => Object.values(obj).reduce( - (sum, value) => sum + Number(value.toFixed(0)), + (sum, value) => sum + (value ? Number(value.toFixed(0)) : 0), 0, );