diff --git a/packages/webapp/src/containers/Sales/Invoices/InvoicesLanding/InvoicesListProvider.tsx b/packages/webapp/src/containers/Sales/Invoices/InvoicesLanding/InvoicesListProvider.tsx index 950f1f62b..3d2d5917e 100644 --- a/packages/webapp/src/containers/Sales/Invoices/InvoicesLanding/InvoicesListProvider.tsx +++ b/packages/webapp/src/containers/Sales/Invoices/InvoicesLanding/InvoicesListProvider.tsx @@ -16,21 +16,21 @@ function InvoicesListProvider({ query, tableStateChanged, ...props }) { const { data: invoicesViews, isLoading: isViewsLoading } = useResourceViews('sale_invoices'); - // Fetch the accounts resource fields. + // Fetch resource fields of the sale invoices. const { data: resourceMeta, isLoading: isResourceLoading, isFetching: isResourceFetching, } = useResourceMeta('sale_invoices'); - // Fetch accounts list according to the given custom view id. + // Fetch sale invoices of the given query. const { data: { invoices, pagination, filterMeta }, isFetching: isInvoicesFetching, isLoading: isInvoicesLoading, } = useInvoices(query, { keepPreviousData: true }); - // Detarmines the datatable empty status. + // Detarmines whether the table should show empty state. const isEmptyStatus = isEmpty(invoices) && !tableStateChanged && !isInvoicesLoading; diff --git a/packages/webapp/src/containers/Vendors/VendorsLanding/VendorsListProvider.tsx b/packages/webapp/src/containers/Vendors/VendorsLanding/VendorsListProvider.tsx index c6d596903..6277cc9b3 100644 --- a/packages/webapp/src/containers/Vendors/VendorsLanding/VendorsListProvider.tsx +++ b/packages/webapp/src/containers/Vendors/VendorsLanding/VendorsListProvider.tsx @@ -20,16 +20,16 @@ function VendorsListProvider({ tableState, tableStateChanged, ...props }) { isFetching: isVendorsFetching, } = useVendors(tableQuery, { keepPreviousData: true }); - // Fetch customers resource views and fields. + // Fetch vendors resource views and fields. const { data: vendorsViews, isLoading: isVendorsViewsLoading } = useResourceViews('vendors'); - // Fetch the customers resource fields. + // Fetch the vendors resource fields. const { data: resourceMeta, isLoading: isResourceMetaLoading, isFetching: isResourceMetaFetching, - } = useResourceMeta('customers'); + } = useResourceMeta('vendors'); // Detarmines the datatable empty status. const isEmptyStatus =