Skip to content

Commit

Permalink
eliminate more === where reference comparison undesirable
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNoepel committed Aug 28, 2023
1 parent eaf50a2 commit e573d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mappings/grant-fund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export function handleVoteCast(event: VoteCastEvent): void {
const stage = getCurrentStage(voteCast.blockNumber, distributionPeriod)

// proposal is in screening stage
if (stage === "SCREENING") {
if (stage == "SCREENING") {
const screeningVotesCast = wadToDecimal(event.params.weight)
proposal.screeningVotesReceived = proposal.screeningVotesReceived.plus(screeningVotesCast)
distributionPeriod.screeningVotesCast = distributionPeriod.screeningVotesCast.plus(event.params.weight.toBigDecimal())
Expand Down Expand Up @@ -325,7 +325,7 @@ export function handleVoteCast(event: VoteCastEvent): void {
// save screeningVote to the store
screeningVote.save()
}
else if (stage === "FUNDING") {
else if (stage == "FUNDING") {
// create FundingVote entity
const fundingVote = loadOrCreateFundingVote(getFundingVoteId(proposalId, voter.id, distributionId))

Expand Down

0 comments on commit e573d63

Please sign in to comment.