fix(ui): encode bare nprofile in ShockWallet QR section

The dedicated "Using ShockWallet" QR now encodes the raw nprofile
value (not a URL) so ShockWallet's QR scanner can recognize it
directly. The table row still uses the deep link URL.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-04-01 14:34:01 -04:00
commit e28865abda

View file

@ -339,13 +339,13 @@ function goBack() {
</CardContent> </CardContent>
</Card> </Card>
<!-- Lightning.Pub nprofile QR (deep link to ShockWallet) --> <!-- Lightning.Pub nprofile QR (scannable by ShockWallet) -->
<Card v-else-if="seg.type === 'lp-nprofile'" class="my-6 mx-auto max-w-xs"> <Card v-else-if="seg.type === 'lp-nprofile'" class="my-6 mx-auto max-w-xs">
<CardContent class="flex flex-col items-center gap-3 p-6"> <CardContent class="flex flex-col items-center gap-3 p-6">
<template v-if="shockwalletDeepLink"> <template v-if="lpNprofile">
<div class="rounded-xl bg-white p-3"> <div class="rounded-xl bg-white p-3">
<QrcodeVue <QrcodeVue
:value="shockwalletDeepLink" :value="lpNprofile"
:size="180" :size="180"
level="L" level="L"
render-as="svg" render-as="svg"
@ -354,7 +354,7 @@ function goBack() {
/> />
</div> </div>
<span class="text-xs text-muted-foreground text-center px-2"> <span class="text-xs text-muted-foreground text-center px-2">
Scan to open ShockWallet Scan with ShockWallet to connect
</span> </span>
</template> </template>
<template v-else> <template v-else>