diff --git a/infrastructure/control-panel/package.json b/infrastructure/control-panel/package.json index 9d4f59ff..39e80d92 100644 --- a/infrastructure/control-panel/package.json +++ b/infrastructure/control-panel/package.json @@ -54,4 +54,4 @@ "lucide-svelte": "^0.539.0", "tailwind-merge": "^3.0.2" } -} \ No newline at end of file +} diff --git a/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.svelte b/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.svelte index 378a32a0..a46b4657 100644 --- a/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.svelte +++ b/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.svelte @@ -43,6 +43,14 @@ $effect(() => { pin = calcPin(pins); }); +$effect(() => { + if (pin === "") { + for (const key of Object.keys(pins)) { + pins[+key] = ""; + } + } +}); + const calcPin = (pins: { [key: number]: string }) => { return Object.values(pins).join("") || ""; }; diff --git a/infrastructure/eid-wallet/src/routes/(app)/settings/pin/+page.svelte b/infrastructure/eid-wallet/src/routes/(app)/settings/pin/+page.svelte index 92e50e13..8dff1c99 100644 --- a/infrastructure/eid-wallet/src/routes/(app)/settings/pin/+page.svelte +++ b/infrastructure/eid-wallet/src/routes/(app)/settings/pin/+page.svelte @@ -1,4 +1,5 @@