From 2568502ab1a0647b65d7cd80752fbd77896e7ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 20 Sep 2022 11:12:36 +0200 Subject: [PATCH] Rewrite conditional class definition --- src/components/molecules/Location.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/molecules/Location.svelte b/src/components/molecules/Location.svelte index 4efd16f..187b81c 100644 --- a/src/components/molecules/Location.svelte +++ b/src/components/molecules/Location.svelte @@ -101,8 +101,9 @@
{#each location.photos as { image }, index} {#if image} + {@const classes = ['location__photo', index === photoIndex ? 'is-visible' : null].join(' ').trim()}