Skip to content

[BUG]: Direct DOM manipulation can lead to inconsistencies. #122

Description

@aniket866

Bug Description

  • Where?: InvoicePreview.jsx ,CountryPicker.jsx, ReceivedInvoice.jsx

  • Issue: Direct DOM manipulation: e.target.style.display = "none".

  • Fix: Use React state (const [imgError, setImgError] = useState(false)) to handle image fallbacks.

  • Why?: Bypassing React's virtual DOM can lead to inconsistencies.

Steps to Reproduce

N/A

Logs and Screenshots

N/A

Environment Details

N/A

Impact

Critical - Application is unusable

Code of Conduct

  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions