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 }, );