From e529890c99c860d7e9b46def8e54ee8a721d7f0b Mon Sep 17 00:00:00 2001 From: Gage Krumbach Date: Tue, 26 Sep 2023 09:30:36 -0500 Subject: [PATCH] fix detection logic --- backend/src/routes/api/accelerators/acceleratorUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/api/accelerators/acceleratorUtils.ts b/backend/src/routes/api/accelerators/acceleratorUtils.ts index b99850a0ab..d80b12b42a 100644 --- a/backend/src/routes/api/accelerators/acceleratorUtils.ts +++ b/backend/src/routes/api/accelerators/acceleratorUtils.ts @@ -49,7 +49,7 @@ export const getAcceleratorNumbers = async ( // if any accelerators are available, the cluster is configured const configured = - info.configured ?? Object.values(info.available).some((value) => value > 0); + info.configured || Object.values(info.available).some((value) => value > 0); return { total: info.total,