Skip to content

Commit

Permalink
fix: as comments
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpeach committed Apr 4, 2024
1 parent 1850793 commit 11d102d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/lib/services/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ export const getProposalVotes = async (
id: number,
limit: number,
offset: number,
answer?: ProposalVoteType,
search?: string
answer: ProposalVoteType,
search: string
): Promise<ProposalVotesResponse> => {
let url = `${endpoint}/${encodeURIComponent(id)}/votes?limit=${limit}&offset=${offset}`;
url = url.concat(search ? `&search=${encodeURIComponent(search)}` : "");
Expand All @@ -323,8 +323,8 @@ export const getProposalValidatorVotes = async (
offset: number,
answer: ProposalVoteType,
search: string
): Promise<ProposalValidatorVotesResponse> => {
return axios
): Promise<ProposalValidatorVotesResponse> =>
axios
.get(`${endpoint}/${encodeURIComponent(id)}/validator-votes`, {
params: {
limit,
Expand All @@ -343,7 +343,6 @@ export const getProposalValidatorVotes = async (
total: parsed.total,
};
});
};

const zProposalAnswerCounts = z.object({
yes: z.number().nonnegative(),
Expand Down

0 comments on commit 11d102d

Please sign in to comment.