Cashu: fix multimint switch (#1452)

This commit is contained in:
calle 2023-02-04 05:12:44 +01:00 committed by GitHub
parent bbbbb8b9af
commit 9d2008d45c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1904,7 +1904,7 @@ page_container %}
// TODO: We assume here that all proofs are from one mint! This will fail if // TODO: We assume here that all proofs are from one mint! This will fail if
// that's not the case! // that's not the case!
if (!tokenJson.mints[0].url == this.activeMintURL) { if (tokenJson.mints[0].url != this.activeMintURL) {
this.activateMint(tokenJson.mints[0].url) this.activateMint(tokenJson.mints[0].url)
} }
} }
@ -2219,36 +2219,10 @@ page_container %}
if (paid) { if (paid) {
if (window.navigator.vibrate) navigator.vibrate(200) if (window.navigator.vibrate) navigator.vibrate(200)
this.notifySuccess('Token paid.') this.notifySuccess('Token paid.')
// this.$q.notify({
// timeout: 5000,
// type: 'positive',
// message: 'Token paid',
// position: 'top',
// actions: [
// {
// icon: 'close',
// color: 'white',
// handler: () => {}
// }
// ]
// })
} else { } else {
console.log('### token not paid yet') console.log('### token not paid yet')
if (verbose) { if (verbose) {
this.notify('Token still pending', (color = 'grey')) this.notify('Token still pending', (color = 'grey'))
// this.$q.notify({
// timeout: 5000,
// color: 'grey',
// message: 'Token still pending',
// position: 'top',
// actions: [
// {
// icon: 'close',
// color: 'white',
// handler: () => {}
// }
// ]
// })
} }
this.sendData.tokens = token this.sendData.tokens = token
} }