diff --git a/packages/js-client/src/internal/modules/methods.ts b/packages/js-client/src/internal/modules/methods.ts index 3230c96d..8543a3b3 100644 --- a/packages/js-client/src/internal/modules/methods.ts +++ b/packages/js-client/src/internal/modules/methods.ts @@ -539,7 +539,9 @@ export class GaslessVotingClientMethods const proposal = await this.getProposal(proposalId); if (!proposal) return Promise.reject(new InvalidProposalIdError()); if (!proposal.vochain?.tally?.final) - Promise.reject(Error('No results yet')); + return Promise.reject( + new Error('Gasless Proposals results are not yet available') + ); if (proposal.approvers.length == 0) { return this.setTally( diff --git a/packages/js-client/src/internal/utils.ts b/packages/js-client/src/internal/utils.ts index 608e44a7..f7c8e1ff 100644 --- a/packages/js-client/src/internal/utils.ts +++ b/packages/js-client/src/internal/utils.ts @@ -423,7 +423,7 @@ export function toNewProposal( }, voters, approvers: proposal.approvers.map((x) => x.id.split('_')[1]), - canBeApproved: hasSucceeded, + canBeApproved: hasSucceeded && vochainProposal.finalResults, } as GaslessVotingProposal; }