Skip to content

Commit

Permalink
small update, check lenght of array, as defaults to empty
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 29, 2024
1 parent b9b16a4 commit c86b4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/core/utils/statusHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { SupportedNetwork } from '../../../@types/blockchain.js'

function getAdminAddresses(config: OceanNodeConfig) {
const validAddresses = []
if (config.allowedAdmins) {
if (config.allowedAdmins && config.allowedAdmins.length > 0) {
for (const admin of config.allowedAdmins) {
if (isAddress(admin) === true) {
validAddresses.push(admin)
Expand Down

0 comments on commit c86b4f0

Please sign in to comment.