From 00700c8651856af0d3a165af1570094ecf5738c7 Mon Sep 17 00:00:00 2001 From: Skorpios Date: Sun, 16 Mar 2025 13:12:13 -0700 Subject: [PATCH] Return an array rather than an object. --- .../Components/NotificationIntegrationModal.jsx | 2 +- .../NotificationIntegrationModal/Hooks/useNotification.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/NotificationIntegrationModal/Components/NotificationIntegrationModal.jsx b/src/Components/NotificationIntegrationModal/Components/NotificationIntegrationModal.jsx index 658ac839c..dcd194048 100644 --- a/src/Components/NotificationIntegrationModal/Components/NotificationIntegrationModal.jsx +++ b/src/Components/NotificationIntegrationModal/Components/NotificationIntegrationModal.jsx @@ -45,7 +45,7 @@ const NotificationIntegrationModal = ({ const theme = useTheme(); const [tabValue, setTabValue] = useState(0); - const { loading, sendTestNotification } = useNotifications(); + const [loading, _, sendTestNotification] = useNotifications(); // Helper to get the field state key with error handling const getFieldKey = (typeId, fieldId) => { diff --git a/src/Components/NotificationIntegrationModal/Hooks/useNotification.js b/src/Components/NotificationIntegrationModal/Hooks/useNotification.js index 476128c6a..b4f38dc80 100644 --- a/src/Components/NotificationIntegrationModal/Hooks/useNotification.js +++ b/src/Components/NotificationIntegrationModal/Hooks/useNotification.js @@ -106,11 +106,11 @@ const useNotifications = () => { } }; - return { + return [ loading, error, sendTestNotification - }; + ]; }; export default useNotifications; \ No newline at end of file