Skip to content

Conditionally render Danger Zone section based on transactions - #183

Merged
khanirfan18 merged 1 commit into
khanirfan18:mainfrom
sahu-adityaVinayak:main
Jun 5, 2026
Merged

Conditionally render Danger Zone section based on transactions#183
khanirfan18 merged 1 commit into
khanirfan18:mainfrom
sahu-adityaVinayak:main

Conversation

@sahu-adityaVinayak

Copy link
Copy Markdown
Contributor

Overview

This PR addresses issue #182 by conditionally rendering the Danger Zone section on the Settings page.

Changes Made

  • Wrapped the Danger Zone Section component inside a conditional check (transactions?.length > 0).
  • Cleaned up grid and layout alignment wrappers for proper rendering context.
  • Prevented destructive actions from being displayed to users when no transactions exist.

@netlify

netlify Bot commented Jun 4, 2026

Copy link
Copy Markdown

👷 Deploy request for finnboard0 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6395fa6

@netlify

netlify Bot commented Jun 4, 2026

Copy link
Copy Markdown

Deploy Preview for finnboard ready!

Name Link
🔨 Latest commit 6395fa6
🔍 Latest deploy log https://app.netlify.com/projects/finnboard/deploys/6a21a6a2f5923600089d361f
😎 Deploy Preview https://deploy-preview-183--finnboard.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.

@khanirfan18
khanirfan18 merged commit b540fad into khanirfan18:main Jun 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants