diff --git a/src/utils/api/delegate.js b/src/utils/api/delegate.js index 56e6c5e80..853439229 100644 --- a/src/utils/api/delegate.js +++ b/src/utils/api/delegate.js @@ -36,7 +36,7 @@ export const voteAutocomplete = (activePeer, username, votedDict) => { export const unvoteAutocomplete = (username, votedDict) => new Promise(resolve => resolve(Object.keys(votedDict) - .filter(delegate => delegate.indexOf(username) !== -1) + .filter(delegate => delegate.indexOf(username) !== -1 && votedDict[delegate].unconfirmed) .map(element => ({ username: element, publicKey: votedDict[element].publicKey }))), );