fix: Update error handling in ClaudeUsagePopover and improve type safety in app-store

This commit is contained in:
Mohamad Yahia
2025-12-21 10:30:06 +04:00
parent 6028889909
commit 5be85a45b1
2 changed files with 64 additions and 30 deletions

View File

@@ -1230,7 +1230,7 @@ export const useAppStore = create<AppState & AppActions>()(
const id =
feature.id ||
`feature-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
const featureWithId = { ...feature, id } as Feature;
const featureWithId = { ...feature, id } as unknown as Feature;
set({ features: [...get().features, featureWithId] });
return featureWithId;
},