Skip to content

Commit

Permalink
Move up the "Paired" condition
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs committed Feb 20, 2024
1 parent e081a6a commit 1d5a97d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/controllers/rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,12 @@ func (r *RewardsController) GetUserRewards(c *fiber.Ctx) error {
Vendor: integr.Vendor,
DataThisWeek: false,
Points: 0,
OnChainPairingStatus: "Unpaired",
OnChainPairingStatus: "Paired",
}

if vehicleMinted && integSignalsThisWeek.Contains(integr.Id) {
uri.Points = int(integr.Points)
uri.DataThisWeek = true
uri.OnChainPairingStatus = "Paired"
}

outInts = append(outInts, uri)
Expand Down

0 comments on commit 1d5a97d

Please sign in to comment.