fix: creating instruments costs money

This commit is contained in:
pskfyi 2022-01-11 20:24:49 -08:00 committed by pskfyi
parent c8cb271052
commit a226cb3fa0
1 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@
:label="process.instrument"
:max="process.cost"
:value="$store.state.currency"
@click="create(process.instrument)"
@click="create(process)"
/>
</responsive-grid>
@ -35,8 +35,9 @@ export default {
},
},
methods: {
create(instrument) {
this.$store.commit('createInstrument', instrument)
create(process) {
this.$store.commit('createInstrument', process.instrument)
this.$store.commit('spendCurrency', process.cost)
},
},
}