migrate restoreValues fix to new setting component
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user