Skip to content

Fix divide by zero in BTC calculator - #8

Open
sebasgm80 wants to merge 1 commit into
mainfrom
codex/update-calculatetotalbtcvalue-to-handle-division-by-zero
Open

Fix divide by zero in BTC calculator#8
sebasgm80 wants to merge 1 commit into
mainfrom
codex/update-calculatetotalbtcvalue-to-handle-division-by-zero

Conversation

@sebasgm80

Copy link
Copy Markdown
Owner

Summary

  • handle zero or negative month difference in calculateTotalBTCValue
  • calculate months difference once and reuse in display
  • compute month difference using correct date order and remove unused import

Testing

  • npm run lint (fails: ESLint couldn't find a config)
  • npm run build (fails: vite not found)

https://chatgpt.com/codex/tasks/task_e_6843ca5afde883238315eedaf9a24475

@netlify

netlify Bot commented Jun 7, 2025

Copy link
Copy Markdown

Deploy Preview for btcsalida ready!

Name Link
🔨 Latest commit dfbe295
🔍 Latest deploy log https://app.netlify.com/projects/btcsalida/deploys/6843d1a597239300083e39d9
😎 Deploy Preview https://deploy-preview-8--btcsalida.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant