From 391ec689ff43d3f783ca096d4d8b2cfa9d6ee761 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 15 Dec 2019 20:27:18 +0000 Subject: [PATCH] fix wallet creation from homepage. --- LNbits/static/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LNbits/static/app.js b/LNbits/static/app.js index 53981662..cedca8de 100644 --- a/LNbits/static/app.js +++ b/LNbits/static/app.js @@ -280,8 +280,9 @@ function sidebarmake() { } function newwallet() { - walname = document.getElementById('walname').value - window.location.href = 'wallet?usr=' + user + '&nme=' + walname + var walname = document.getElementById('walname').value + window.location.href = + 'wallet?' + (user ? 'usr=' + user + '&' : '') + 'nme=' + walname } function drawChart(transactions) {