Fixes claiming LNURL (#2924)

This commit is contained in:
Tiago Vasconcelos
2025-02-07 11:41:06 +02:00
committed by GitHub
parent 0efb52664e
commit e134c5c7b9
3 changed files with 20 additions and 10 deletions
+14 -4
View File
@@ -131,10 +131,20 @@ const routes = [
path: '/wallet',
name: 'Wallet',
component: DynamicComponent,
props: route => ({
fetchUrl: `/wallet${route.query.wal ? `?wal=${route.query.wal}` : ''}`,
scripts: ['/static/js/wallet.js']
})
props: route => {
let fetchUrl = '/wallet'
if (Object.keys(route.query).length > 0) {
fetchUrl += '?'
for (const [key, value] of Object.entries(route.query)) {
fetchUrl += `${key}=${value}&`
}
fetchUrl = fetchUrl.slice(0, -1) // remove last &
}
return {
fetchUrl,
scripts: ['/static/js/wallet.js']
}
}
},
{
path: '/admin',