Skip to content

Commit 3ee970f

Browse files
committed
Fix condition.
1 parent 2028fae commit 3ee970f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/core/compute/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ export async function validateAlgoForDataset(
9090
CORE_LOGGER.logMessage(`algoDID: ${algoDID}`)
9191
if (
9292
// if not set allow them all
93-
(!compute.publisherTrustedAlgorithms &&
94-
!compute.publisherTrustedAlgorithmPublishers) ||
95-
(compute.publisherTrustedAlgorithms.length === 0 &&
93+
(!Array.isArray(compute.publisherTrustedAlgorithms) ||
94+
compute.publisherTrustedAlgorithms.length === 0) &&
95+
(!Array.isArray(compute.publisherTrustedAlgorithmPublishers) ||
9696
compute.publisherTrustedAlgorithmPublishers.length === 0)
9797
) {
9898
CORE_LOGGER.logMessage(

0 commit comments

Comments
 (0)