export default { methods: { makeGenericPurchase (item, type = 'buyModal') { this.$store.dispatch('shops:genericPurchase', { pinType: item.pinType, type: item.purchaseType, key: item.key, currency: item.currency, }); if (item.purchaseType !== 'gear') { this.$store.state.recentlyPurchased[item.key] = true; } this.$root.$emit('playSound', 'Reward'); if (type !== 'buyModal') { this.$emit('buyPressed', this.item); return; } this.$root.$emit('buyModal::boughtItem', item); }, }, };