fix: missions that cost spare time now deduct spare time

This commit is contained in:
pskfyi 2022-01-10 22:01:14 -08:00 committed by John McCardle
parent 4f0b3c7741
commit e0b8bd00c1
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ export default {
methods: {
complete(mission) {
this.$store.commit('completeMission', mission.name)
if (mission.completionCriteria.unit === 'spareTime') {
this.$store.commit('spendCurrency', mission.completionCriteria.value)
}
},
},
}