Skip to content

refactor(buy-nft-modal): improve UX, safety, and accessibility#2

Open
syed-ghufran-hassan wants to merge 1 commit intoChaoLing140:feature/issue-43-dispute-resolutionfrom
syed-ghufran-hassan:patch-2
Open

refactor(buy-nft-modal): improve UX, safety, and accessibility#2
syed-ghufran-hassan wants to merge 1 commit intoChaoLing140:feature/issue-43-dispute-resolutionfrom
syed-ghufran-hassan:patch-2

Conversation

@syed-ghufran-hassan
Copy link
Copy Markdown

  • Added local isSubmitting state to prevent double purchases
  • Wrapped onConfirm in try/catch to handle async errors safely
  • Memoized derived values (price, balance, seller)
  • Added image fallback and error handler
  • Prevented modal close while transaction is processing
  • Improved accessibility (aria-busy, aria-disabled, role="alert")
  • Added defensive handling for missing seller/description

- Added local isSubmitting state to prevent double purchases
- Wrapped onConfirm in try/catch to handle async errors safely
- Memoized derived values (price, balance, seller)
- Added image fallback and error handler
- Prevented modal close while transaction is processing
- Improved accessibility (aria-busy, aria-disabled, role="alert")
- Added defensive handling for missing seller/description
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.

1 participant