fix: initial value changing on expiration input

This commit is contained in:
tglide
2023-02-09 18:17:17 +00:00
parent ed42f9d508
commit 0b8bea1ffb
@@ -68,7 +68,9 @@
let expirationCustom: string | null = value ?? null;
$: {
value = expirationSelect === 'custom' ? expirationCustom : expirationSelect;
if (!isSameDay(new Date(expirationSelect), new Date(value))) {
value = expirationSelect === 'custom' ? expirationCustom : expirationSelect;
}
}
</script>