Skip to content

Commit

Permalink
handlers(multiversx): fix checking for self is validator
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Aug 7, 2024
1 parent d831dc1 commit b96e00e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/handler/multiversx/utils/selfIsValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export default async function selfIsValidator(
validatorsDefinition,
);
let added = false;
if (firstValue) ({ added } = firstValue.valueOf()[0]);
if (firstValue) {
const [value] = firstValue.valueOf();
added = value?.added ?? false;
}
return added;
}

0 comments on commit b96e00e

Please sign in to comment.