fix(fcv): disallow negative values

This commit is contained in:
SabreCat
2023-04-27 15:21:37 -05:00
parent 61e41b539d
commit 6cb3dcd76a
2 changed files with 5 additions and 2 deletions

View File

@@ -179,7 +179,9 @@ export default {
let valid = true;
for (const stat of canRestore) {
if (this.restoreValues.stats[stat] === '') {
if (this.restoreValues.stats[stat] === ''
|| this.restoreValues.stats[stat] < 0
) {
this.restoreValues.stats[stat] = this.user.stats[stat];
valid = false;
}