Skip to content

Commit 92295b4

Browse files
perf(web): usage provider settings compile with the React Compiler
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent a101e2e commit 92295b4

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

‎apps/web/reactCompiledFiles.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ export const REACT_COMPILED_FILES = [
7474
"apps/web/src/components/settings/GitHubTokenSettings.tsx",
7575
"apps/web/src/components/settings/GitHubAccountSettings.tsx",
7676
"apps/web/src/components/settings/SourceControlHostSettings.tsx",
77+
"apps/web/src/components/settings/UsageProviderSettings.tsx",
7778
] as const;

‎apps/web/src/components/settings/UsageProviderSettings.tsx‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,14 @@ export function UsageProviderSettings({
4949

5050
const setCursorUsageEnabled = async (enabled: boolean) => {
5151
setUpdatingCursor(true);
52-
try {
53-
const result = await updateCursorSettings({
54-
environmentId,
55-
input: { patch: { cursorKeychainUsageEnabled: enabled } },
56-
});
57-
if (result._tag === "Success") {
58-
await refreshProviders({ environmentId, input: {} });
59-
}
60-
} finally {
61-
setUpdatingCursor(false);
52+
const result = await updateCursorSettings({
53+
environmentId,
54+
input: { patch: { cursorKeychainUsageEnabled: enabled } },
55+
});
56+
if (result._tag === "Success") {
57+
await refreshProviders({ environmentId, input: {} });
6258
}
59+
setUpdatingCursor(false);
6360
};
6461

6562
return (

0 commit comments

Comments
 (0)