fix: use correct CustomEvent for email copying

This commit is contained in:
2024-08-05 15:06:25 +02:00
parent 2f3e5f2866
commit a673646645
2 changed files with 2 additions and 2 deletions

View File

@@ -379,7 +379,7 @@
in:fly={{ y: 4, duration: 325, easing: quartOutSvelte, delay: 250 }}
out:fade={{ duration: 250, easing: quartOutSvelte }}
use:mailtoClipboard
oncopied={(email: string) => {
oncopied={({ detail: email }: CustomEvent<string>) => {
emailCopied = email
// Clear timeout and add timeout to hide message
clearTimeout(emailCopiedTimeout)