From 6ca570c7452a180156880f6d6ad7e7ce4c43a493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Mon, 26 Sep 2022 19:46:10 +0200 Subject: [PATCH] Fix Shop Poster view link --- src/components/molecules/Poster.svelte | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/molecules/Poster.svelte b/src/components/molecules/Poster.svelte index 5309cc1..312edfe 100644 --- a/src/components/molecules/Poster.svelte +++ b/src/components/molecules/Poster.svelte @@ -37,10 +37,7 @@ size="xsmall" url="/shop/poster-{location.slug}" text="View" - on:click={(event) => { - event.preventDefault() - setTimeout(() => $smoothScroll.scrollTo('#poster', { duration: 2 }), 1000) - }} + on:click={() => $smoothScroll.scrollTo('#poster', { duration: 2 })} />