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