Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private async redeemAll() {
const {
currentAccountAddress,
data: redeemableProposals,
redeemProposal,
showNotification,
} = this.props;
if (!(await enableWeb3ProviderAndWarn(showNotification.bind(this)))) { return; }
redeemableProposals.forEach(proposal => {
redeemProposal(proposal.dao.id, proposal.id, currentAccountAddress);
});
}
}