Skip to content

Commit 2028fae

Browse files
committed
Fix condition.
1 parent 3261782 commit 2028fae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/core/compute/utils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ 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
93+
(!compute.publisherTrustedAlgorithms &&
94+
!compute.publisherTrustedAlgorithmPublishers) ||
95+
(compute.publisherTrustedAlgorithms.length === 0 &&
96+
compute.publisherTrustedAlgorithmPublishers.length === 0)
9597
) {
9698
CORE_LOGGER.logMessage(
9799
`compute.publisherTrustedAlgorithms: ${compute.publisherTrustedAlgorithms}`

0 commit comments

Comments
 (0)