Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Default endpoints to empty array instead of null #1665

Merged
merged 1 commit into from
Aug 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/web/src/pages/audio-rewards-page/store/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,14 @@ function* claimChallengeRewardAsync(
const endpoints =
rewardsAttestationEndpoints && rewardsAttestationEndpoints !== ''
? rewardsAttestationEndpoints.split(',')
: null
: []
const hasConfig =
oracleEthAddress &&
AAOEndpoint &&
quorumSize &&
quorumSize > 0 &&
maxClaimRetries &&
!isNaN(maxClaimRetries) &&
endpoints &&
parallelization !== null

if (!hasConfig) {
Expand Down