Skip to content

Commit 5feb231

Browse files
committed
fix: verification flow
1 parent a3bed7d commit 5feb231

File tree

4 files changed

+171
-298
lines changed

4 files changed

+171
-298
lines changed

infrastructure/eid-wallet/src/lib/ui/Drawer/Drawer.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
// isPaneOpen = false;
2828
// };
2929
30+
// Initialize pane only once when element is available
3031
$effect(() => {
3132
if (!drawerElem) return;
3233
pane = new CupertinoPane(drawerElem, {
@@ -44,13 +45,18 @@
4445
initialBreak: "bottom",
4546
});
4647
48+
return () => pane?.destroy();
49+
});
50+
51+
// Handle open/close state separately
52+
$effect(() => {
53+
if (!pane) return;
54+
4755
if (isPaneOpen) {
4856
pane.present({ animate: true });
4957
} else {
5058
pane.destroy({ animate: true });
5159
}
52-
53-
return () => pane.destroy();
5460
});
5561
</script>
5662

infrastructure/eid-wallet/src/routes/(auth)/verify/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,11 @@
355355
<Drawer bind:isPaneOpen={showVeriffModal}>
356356
<div class="overflow-y-scroll">
357357
{#if $verifStep === 0}
358-
<DocumentType></DocumentType>
358+
<DocumentType />
359359
{:else if $verifStep === 1}
360-
<Passport></Passport>
360+
<Passport />
361361
{:else if $verifStep === 2}
362-
<Selfie></Selfie>
362+
<Selfie />
363363
{:else if loading}
364364
<div class="my-20">
365365
<div

infrastructure/eid-wallet/src/routes/(auth)/verify/old.svelte

Lines changed: 0 additions & 221 deletions
This file was deleted.

0 commit comments

Comments
 (0)