Skip to content

Commit

Permalink
fix: lint issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva committed Nov 21, 2024
1 parent 29514d0 commit 30b8a54
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/components/MyKiva/JournalUpdatesCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
);
</script>
Expand Down

0 comments on commit 30b8a54

Please sign in to comment.