Skip to content

Round score to two decimal places in Strava notifications#238

Merged
prazgaitis merged 2 commits into
mainfrom
claude/round-score-decimal-I4SoU
Mar 23, 2026
Merged

Round score to two decimal places in Strava notifications#238
prazgaitis merged 2 commits into
mainfrom
claude/round-score-decimal-I4SoU

Conversation

@prazgaitis
Copy link
Copy Markdown
Owner

Summary

Round the pointsEarned score to two decimal places when displaying in Strava activity imported/updated notifications. This ensures consistent formatting of point values in notification messages, removing unnecessary trailing zeros (e.g., 10.0010, 10.5010.5).

Changes

  • Round pointsEarned to 2 decimal places in strava_import notification message
  • Round pointsEarned to 2 decimal places in strava_update notification message
  • Round previousPointsEarned to 2 decimal places in strava_update notification message (when showing "was X")

Implementation Details

Used parseFloat(points.toFixed(2)) to round to 2 decimal places while stripping trailing zeros. Changes made in apps/web/app/challenges/[id]/(dashboard)/notifications/notifications-list.tsx.

Testing

  • pnpm lint
  • pnpm typecheck

Notes

This is a straightforward formatting change to notification messages. No new functionality or logic is introduced, only the display format of numeric values.

https://claude.ai/code/session_01XwvSBeSRKUBieqeXhYi54U

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
march-fitness-2025 Ready Ready Preview, Comment Mar 22, 2026 10:10pm

Request Review

@prazgaitis prazgaitis merged commit 3ea6936 into main Mar 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants