Skip to content

Commit bbf40d8

Browse files
BunsDevclaude
andcommitted
fix: resolve strict null check in ConnectionIndicator config lookup
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c82b2de commit bbf40d8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/web/src/components/ConnectionIndicator.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ function formatUptime(ms: number): string {
3333
export const ConnectionIndicator = memo(function ConnectionIndicator() {
3434
const { state, metrics } = useConnectionHealth();
3535

36-
const config = STATE_DOT_CONFIG[state] ?? STATE_DOT_CONFIG.connecting;
36+
// Non-null: `connecting` is always defined in STATE_DOT_CONFIG.
37+
const config = (STATE_DOT_CONFIG[state] ?? STATE_DOT_CONFIG.connecting)!;
3738

3839
return (
3940
<Tooltip>

0 commit comments

Comments
 (0)