Skip to content

Commit c6f8c3e

Browse files
authored
fix: fixed the message. (#1054)
1 parent 924f33f commit c6f8c3e

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

infrastructure/eid-wallet/src/routes/(app)/scan-qr/+page.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const {
2525
scannedData,
2626
loading,
2727
redirect,
28+
isFromScan,
2829
signingData,
2930
isSigningRequest,
3031
showSigningSuccess,
@@ -199,6 +200,7 @@ function handleSocialBindingOpenChange(value: boolean) {
199200
platform={$platform}
200201
hostname={$hostname}
201202
scannedContent={$scannedData?.content}
203+
isFromScan={$isFromScan}
202204
isSigningRequest={$isSigningRequest}
203205
authError={$authError}
204206
authLoading={$authLoading}

infrastructure/eid-wallet/src/routes/(app)/scan-qr/components/AuthDrawer.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface IAuthDrawerProps {
1010
platform: string | null | undefined;
1111
hostname: string | null | undefined;
1212
scannedContent: string | undefined;
13+
isFromScan: boolean;
1314
isSigningRequest: boolean;
1415
authError: string | null | undefined;
1516
authLoading: boolean | undefined;
@@ -23,6 +24,7 @@ const {
2324
platform,
2425
hostname,
2526
scannedContent,
27+
isFromScan,
2628
isSigningRequest,
2729
authError,
2830
authLoading,
@@ -77,7 +79,11 @@ $effect(() => {
7779
<h4
7880
class="text-2xl font-medium text-black-900 text-center leading-tight"
7981
>
80-
You have scanned the<br />login QR code
82+
{#if isFromScan}
83+
You have scanned the<br />login QR code
84+
{:else}
85+
You have a pending<br />login request
86+
{/if}
8187
</h4>
8288
<p
8389
class="text-lg leading-tight text-black-700 opacity-50 text-center"

0 commit comments

Comments
 (0)