From d00743446bebbc477678a06a33c0325d83351467 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Thu, 5 Jun 2025 10:15:28 +0100 Subject: [PATCH] chore: small PR fixes --- packages/admin-ui/src/pages/Customers/Customers.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/admin-ui/src/pages/Customers/Customers.jsx b/packages/admin-ui/src/pages/Customers/Customers.jsx index 8f5d8446..f7528976 100644 --- a/packages/admin-ui/src/pages/Customers/Customers.jsx +++ b/packages/admin-ui/src/pages/Customers/Customers.jsx @@ -88,7 +88,7 @@ const Customers = () => { const [showCreationModal, setShowCreationModal] = useState(false) - const { data: customersResponse, loading: customerLoading } = + const { data: customersResponse, loading: customersLoading } = useQuery(GET_CUSTOMERS) const [createNewCustomer] = useMutation(CREATE_CUSTOMER, { @@ -112,7 +112,7 @@ const Customers = () => { const byAuthorized = c => (c.authorizedStatus.label === 'Pending' ? 0 : 1) const byLastActive = c => new Date(R.prop('lastActive', c) ?? '0') - const customers = R.path(['customers'])(customersResponse) ?? [] + const customers = R.path(['customers'])(customersResponse) const customersData = R.pipe( R.map(setAuthorizedStatus), R.sortWith([R.ascend(byAuthorized), R.descend(byLastActive)]), @@ -138,7 +138,7 @@ const Customers = () => { data={customersData} country={locale?.country} onClick={handleCustomerClicked} - loading={customerLoading} + loading={customersLoading} />