Skip to content

Commit

Permalink
fix: be lightningAddress into reactive value
Browse files Browse the repository at this point in the history
  • Loading branch information
ocknamo committed Dec 17, 2023
1 parent 245236a commit 596ddb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/component/LightningTipDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export let nip5: string | null = null;
export let lightningAddressUrl: string | null = null;
const lightningAddress = lightningAddressUrl
$: lightningAddress = lightningAddressUrl
? lightningAddressUrl.replace('lnurlp://', '')
: '';
</script>
Expand All @@ -21,13 +21,15 @@
aria-describedby="Which URLs to redirect to. Information about who created the URL."
>
<Content id="redirect-to">
<!-- XXXX: Depending on the environment, 'lnurlp://' could not be used. -->
<!-- XXXX: Depending on the environment, 'lnurlp://' could not be used. Fix me if you can. e.g. Pixel 6 -->
<QrCode value={'lightning://' + lightningAddress}></QrCode>

<p class="redirect-url">
<span style="font-weight: 600">Tip to: </span>{lightningAddress ?? '???'}
</p>
<span style="font-weight: 600">Who made this? :</span>
<span style="font-weight: 600">Who made this link? :</span>
<br />
<a
href={`https://nostter.app/${nip5Name}@${nip5}`}
target="_blank"
Expand Down

0 comments on commit 596ddb9

Please sign in to comment.