refactor(web): improve incoming notifications var name in infinite scroll loader

This commit is contained in:
Pujit Mehrotra
2024-11-14 11:59:54 -05:00
parent 9c38fa6a9c
commit aa5fad39f3

View File

@@ -45,7 +45,7 @@ const notifications = computed(() => {
async function onLoadMore() {
console.log('[getNotifications] onLoadMore');
const a = await fetchMore({
const incoming = await fetchMore({
variables: {
filter: {
offset: notifications.value.length,
@@ -55,7 +55,7 @@ async function onLoadMore() {
},
},
});
const incomingCount = a?.data.notifications.list.length ?? 0;
const incomingCount = incoming?.data.notifications.list.length ?? 0;
if (incomingCount === 0) {
canLoadMore.value = false;
}