mirror of
https://github.com/tornadocash/trusted-setup-server.git
synced 2024-11-25 03:14:53 +01:00
tidy
This commit is contained in:
parent
f9840388d8
commit
c725b54d84
@ -55,7 +55,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState('user', ['name', 'handle', 'company']),
|
...mapState('user', ['name', 'handle', 'company', 'contributionIndex']),
|
||||||
...mapGetters('user', ['isLoggedIn', 'hasErrorName']),
|
...mapGetters('user', ['isLoggedIn', 'hasErrorName']),
|
||||||
title() {
|
title() {
|
||||||
if (this.status.type === 'is-danger' || !this.contributionIndex) {
|
if (this.status.type === 'is-danger' || !this.contributionIndex) {
|
||||||
@ -66,14 +66,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
return `Please, specify your name and organization.`
|
return `Please, specify your name and organization.`
|
||||||
}
|
}
|
||||||
},
|
|
||||||
contributionIndex: {
|
|
||||||
get() {
|
|
||||||
return this.$store.state.user.contributionIndex
|
|
||||||
},
|
|
||||||
set(value) {
|
|
||||||
this.$store.commit('user/SET_CONTRIBUTION_INDEX', value)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
@ -135,7 +127,7 @@ export default {
|
|||||||
})
|
})
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const { id } = await response.json()
|
const { id } = await response.json()
|
||||||
this.contributionIndex = id
|
this.$store.commit('user/SET_CONTRIBUTION_INDEX', id)
|
||||||
} else {
|
} else {
|
||||||
const error = await response.text()
|
const error = await response.text()
|
||||||
this.status.msg = error
|
this.status.msg = error
|
||||||
|
@ -119,7 +119,6 @@ router.post('/authorize_contribution', async (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const contribution = await Contribution.findOne({ where: { token: req.body.token } })
|
const contribution = await Contribution.findOne({ where: { token: req.body.token } })
|
||||||
console.log('contribution', contribution.dataValues.id)
|
|
||||||
if (!contribution) {
|
if (!contribution) {
|
||||||
res.status(404).send('There is no such contribution')
|
res.status(404).send('There is no such contribution')
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user