Skip to content

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

@aniket866

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

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