fix: change wallet for paylink

closes #26
This commit is contained in:
dni ⚡ 2024-04-01 09:22:40 +02:00
commit 9c518b8e6d
No known key found for this signature in database
GPG key ID: 886317704CC4E618
4 changed files with 30 additions and 17 deletions

View file

@ -123,8 +123,7 @@ new Vue({
const wallet = _.findWhere(this.g.user.wallets, {
id: this.formDialog.data.wallet
})
var data = _.omit(this.formDialog.data, 'wallet')
const data = _.clone(this.formDialog.data)
if (this.formDialog.fixedAmount) data.max = data.min
if (data.currency === 'satoshis') data.currency = null
if (isNaN(parseInt(data.comment_chars))) data.comment_chars = 0