diff --git a/test/helpers/api-integration/requester.js b/test/helpers/api-integration/requester.js index ad01f35978..61c0b2fabf 100644 --- a/test/helpers/api-integration/requester.js +++ b/test/helpers/api-integration/requester.js @@ -53,7 +53,8 @@ function _requestMaker (user, method, additionalSets = {}) { if (user && user._id && user.apiToken) { request .set('x-api-user', user._id) - .set('x-api-key', user.apiToken); + .set('x-api-key', user.apiToken) + .set('x-client', 'habitica-web'); } if (!isEmpty(additionalSets)) { diff --git a/website/client/src/components/settings/restoreModal.vue b/website/client/src/components/settings/restoreModal.vue index de185f7226..bbd86f000a 100644 --- a/website/client/src/components/settings/restoreModal.vue +++ b/website/client/src/components/settings/restoreModal.vue @@ -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; }