From 30b8a5476411e69a01f3b4cf44275d17e042cb2b Mon Sep 17 00:00:00 2001 From: Roger Gutierrez Date: Thu, 21 Nov 2024 13:49:50 -0600 Subject: [PATCH] fix: lint issues fixed --- .../MyKiva/JournalUpdatesCarousel.vue | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/MyKiva/JournalUpdatesCarousel.vue b/src/components/MyKiva/JournalUpdatesCarousel.vue index 33fea03a8c..334906a6bd 100644 --- a/src/components/MyKiva/JournalUpdatesCarousel.vue +++ b/src/components/MyKiva/JournalUpdatesCarousel.vue @@ -144,16 +144,18 @@ const loadMoreUpdates = () => { emit('load-more-updates'); }; -watch(() => updates, () => { - if (updates.value.length > 0 && updates.value.length < 3) { - $kvTrackEvent('portfolio', 'view', 'At least one journal update viewed'); - carouselIndex.value = 0; - } - if (updates.value.length > 3) { - carouselIndex.value = updates.value.length - 2; - } -}, -{ deep: true }, +watch( + () => updates, + () => { + if (updates.value.length > 0 && updates.value.length < 3) { + $kvTrackEvent('portfolio', 'view', 'At least one journal update viewed'); + carouselIndex.value = 0; + } + if (updates.value.length > 3) { + carouselIndex.value = updates.value.length - 2; + } + }, + { deep: true }, );