diff --git a/packages/api/src/dao/IdentitiesDAO.js b/packages/api/src/dao/IdentitiesDAO.js index 96e1d5126..0d01f3feb 100644 --- a/packages/api/src/dao/IdentitiesDAO.js +++ b/packages/api/src/dao/IdentitiesDAO.js @@ -82,8 +82,8 @@ module.exports = class IdentitiesDAO { const aliasInfo = await getAliasInfo(alias, this.dapi) const isLocked = base58.encode( - Buffer.from(aliasInfo.contestedState?.finishedVoteInfo?.wonByIdentityId ?? ''), - 'base64') !== identifier + Buffer.from(aliasInfo.contestedState?.finishedVoteInfo?.wonByIdentityId ?? '', 'base64') + ) !== identifier return { alias,