Skip to content

Commit 9e057f0

Browse files
committed
fix: fix grammar mistake (plural "points" being used for a single point donation)
1 parent b9a3a1d commit 9e057f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/hooks/pools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const handlePointGivenWebhook = async function(prisma: PrismaClient, poin
4545

4646
// Create a score
4747
const score = await handleFixedPointScore(prisma, fixedPointType, null, pointGiven.given_by.id, points,
48-
`Donated ${actualPointsGiven} points to the pool`);
48+
`Donated ${actualPointsGiven} point${actualPointsGiven !== 1 ? 's' : ''} to the pool`);
4949
if (!score) {
5050
console.warn("Refused or failed to create score, skipping...");
5151
return (res ? respondWebHookHandledStatus(prisma, webhookDeliveryId, res, WebhookHandledStatus.Skipped) : null);

0 commit comments

Comments
 (0)