Skip to content

The agent that grows with you

style(desktop): type shared-profile notification state explicitly

ethernetf1fe687b10e7
diff --git a/apps/desktop/src/app/shell/hooks/use-status-snapshot.ts b/apps/desktop/src/app/shell/hooks/use-status-snapshot.ts
index 55249bc12f4..3f9c1e79118 100644
--- a/apps/desktop/src/app/shell/hooks/use-status-snapshot.ts
+++ b/apps/desktop/src/app/shell/hooks/use-status-snapshot.ts
@@ -25,7 +25,7 @@ export function useStatusSnapshot(
useEffect(() => {
let cancelled = false
let timer: number | undefined
- let sharedProfileWarning = ''
+ let sharedProfileWarning: string = ''
let sharedProfileNoticeId: string | undefined
// Status and inference readiness belong to one backend. A source switch
@@ -110,7 +110,7 @@ export function useStatusSnapshot(
if (statusResult.status === 'fulfilled') {
setStatusSnapshot(statusResult.value)
- const warning = statusResult.value.shared_profile_warning || ''
+ const warning: string = statusResult.value.shared_profile_warning || ''
// Keep dismissal until the conflict clears. A new overlap can warn again.
if (warning !== sharedProfileWarning) {