Skip to content

fix(BalanceList): prevent duplicate React keys and add tests for loading skeleton and empty state (#601) - #617

Open
stayzappy wants to merge 1 commit into
Sorokit:mainfrom
stayzappy:fix/issue-601
Open

fix(BalanceList): prevent duplicate React keys and add tests for loading skeleton and empty state (#601)#617
stayzappy wants to merge 1 commit into
Sorokit:mainfrom
stayzappy:fix/issue-601

Conversation

@stayzappy

@stayzappy stayzappy commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Closes #601

Summary

  • Updated BalanceList.tsx sorted.map() key from key={b.asset} to composite unique keys to prevent React duplicate key warnings.
  • Added unit tests in BalanceList.test.tsx:
    • Disconnected state connect prompt.
    • Loading state rendering exactly 3 skeleton rows.
    • Empty state rendering.
    • Loaded state rendering balance rows with formatted amounts.
    • Regression test verifying zero React duplicate key warnings during render.

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.

Write tests for BalanceList loading skeleton empty state and balance row rendering

1 participant