Remove unused showInfoToast during customer data fetch
This commit is contained in:
@@ -46,7 +46,6 @@ export default function CustomersPage() {
|
|||||||
throw new Error(`Failed to fetch customers: ${response.statusText}`);
|
throw new Error(`Failed to fetch customers: ${response.statusText}`);
|
||||||
}
|
}
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
showInfoToast("Customers data loaded");
|
|
||||||
setCustomers(data);
|
setCustomers(data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
showError("Failed to fetch customers data (1)");
|
showError("Failed to fetch customers data (1)");
|
||||||
|
|||||||
Reference in New Issue
Block a user