Skip to content

Conversation

@Sahilagarwal623
Copy link
Contributor

Description

This PR ensures that the Export to CSV button is only clickable when there is at least one transaction available.
Previously, the button remained active even if no transactions existed, leading to unnecessary clicks and empty CSV downloads.

Related Issue

Fixes #176

Motivation and Context

This change improves the user experience by preventing users from exporting empty data and adds a small validation check to enhance the app’s overall usability.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Verified that the Export to CSV button is disabled when no transactions exist.
  • Verified that the button becomes enabled once at least one transaction is added.
  • Tested in both local and deployed environments to confirm consistent behavior.

Screenshots (if applicable):

(Add before/after screenshots if UI is affected.)
Screenshot 2025-10-25 154313

Checklist

  • My code follows the code style of this project
  • I have tested the feature thoroughly
  • All new and existing tests passed

@netlify
Copy link

netlify bot commented Oct 25, 2025

Deploy Preview for paisable ready!

Name Link
🔨 Latest commit c5f0a4e
🔍 Latest deploy log https://app.netlify.com/projects/paisable/deploys/68fca2f2b0b74b0008df5356
😎 Deploy Preview https://deploy-preview-177--paisable.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 93
Accessibility: 100
Best Practices: 100
SEO: 91
PWA: 80
View the detailed breakdown and full score reports

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

Copy link
Member

@archa8 archa8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot merge this PR as you were not assigned this issue. Also, you have made a lot of unnecessary formatting changes which makes it almost impossible to see the useful changes. I won't be able to give this PR a hacktoberfest-accepted label as well due to the unnecessary changes, which might lead to your PR being marked as spammy. Thank you!

@archa8 archa8 closed this Oct 31, 2025
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.

bug: 'Export to CSV' button is enabled even when there are 0 transactions

2 participants