From 95b37b3ba3f74e9b2b14fdc991f79dee44d68ce9 Mon Sep 17 00:00:00 2001 From: negue Date: Mon, 8 May 2023 20:45:09 +0200 Subject: [PATCH] migrate restoreValues fix to new setting component --- .../src/pages/settings/settingRows/fixValuesSetting.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/website/client/src/pages/settings/settingRows/fixValuesSetting.vue b/website/client/src/pages/settings/settingRows/fixValuesSetting.vue index 02b916a653..f3dbe59edc 100644 --- a/website/client/src/pages/settings/settingRows/fixValuesSetting.vue +++ b/website/client/src/pages/settings/settingRows/fixValuesSetting.vue @@ -264,8 +264,10 @@ export default { let valid = true; for (const stat of canRestore) { - if (this.restoreValues[stat] === '') { - this.restoreValues[stat] = this.user.stats[stat]; + if (this.restoreValues.stats[stat] === '' + || this.restoreValues.stats[stat] < 0 + ) { + this.restoreValues.stats[stat] = this.user.stats[stat]; valid = false; } }