From 0a85bae4059eed7abd19c7007e9fa39364d48491 Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Thu, 7 Oct 2021 11:01:26 +0100 Subject: [PATCH] undo stringify --- lnbits/extensions/tpos/templates/tpos/tpos.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lnbits/extensions/tpos/templates/tpos/tpos.html b/lnbits/extensions/tpos/templates/tpos/tpos.html index 96fd5a13..d7d3de32 100644 --- a/lnbits/extensions/tpos/templates/tpos/tpos.html +++ b/lnbits/extensions/tpos/templates/tpos/tpos.html @@ -206,12 +206,9 @@ var dialog = this.invoiceDialog console.log(this.sat, this.tposId) axios - .post( - '/tpos/api/v1/tposs/' + this.tposId + '/invoices', - JSON.stringify({ - amount: this.sat - }) - ) + .post('/tpos/api/v1/tposs/' + this.tposId + '/invoices', { + amount: this.sat + }) .then(function (response) { console.log(response.data) dialog.data = response.data