fix wallet creation from homepage.

This commit is contained in:
fiatjaf 2019-12-15 20:27:18 +00:00
parent 29a187d36b
commit 391ec689ff

View File

@ -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) {