Skip to content

Commit 1182707

Browse files
comment nit
1 parent 2beda78 commit 1182707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compass-preferences-model/src/compass-web-preferences-access.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ export class CompassWebPreferencesAccess implements PreferencesAccess {
1515
}
1616

1717
savePreferences(_attributes: Partial<UserPreferences>) {
18+
// Only allow saving the optInDataExplorerGenAIFeatures preference.
1819
if (
1920
Object.keys(_attributes).length === 1 &&
2021
'optInDataExplorerGenAIFeatures' in _attributes
2122
) {
2223
return Promise.resolve(this._preferences.savePreferences(_attributes));
2324
}
24-
// do not save any attributes other than the optInDataExplorerGenAIFeatures setting
2525
return Promise.resolve(this._preferences.getPreferences());
2626
}
2727

0 commit comments

Comments
 (0)