Skip to content

Fix getClient error handling, truncateAddress signature, and Input ID generation#157

Open
T-kesh wants to merge 1 commit into
Sorokit:mainfrom
T-kesh:fix-getclient-issues
Open

Fix getClient error handling, truncateAddress signature, and Input ID generation#157
T-kesh wants to merge 1 commit into
Sorokit:mainfrom
T-kesh:fix-getclient-issues

Conversation

@T-kesh

@T-kesh T-kesh commented Jun 28, 2026

Copy link
Copy Markdown

Overview
This PR addresses three stability and accessibility issues that could cause runtime crashes or degraded user experience in the Sorokit UI library:

Unhandled exceptions from getClient() – components that call getClient() inside effects now guard against an uninitialized client.
truncateAddress type safety – the utility now accepts string | null | undefined, matching real usage and preventing TypeScript errors.
Duplicate HTML ids in the Input component – IDs are now generated with useId() to guarantee uniqueness even when the same label appears multiple times.
closes #12

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@T-kesh Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

fix(utils,client,Input): getClient throws uncaught in effects, truncateAddress accepts null, Input generates duplicate IDs

1 participant