Skip to content

Commit 93cfc6f

Browse files
sezanzebCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 278797e commit 93cfc6f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/components/settings/project-rating/rating-criteria-settings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const ProjectProjectSettings = () => {
9191

9292
useEffect(() => {
9393
// Only update if settings are loaded
94-
if (settings.rating) {
94+
if (settings.project) {
9595
api.updateSettings(settings as SettingsDTO);
9696
}
9797
}, [settings]);
@@ -138,8 +138,8 @@ export const ProjectProjectSettings = () => {
138138
setSettings((prev) => {
139139
const changedSettings = {
140140
...prev,
141-
rating: {
142-
...prev.rating,
141+
project: {
142+
...prev.project,
143143
allowRatingProjects: value,
144144
},
145145
};

0 commit comments

Comments
 (0)