Return an array rather than an object.

This commit is contained in:
Skorpios committed 2025-03-16 13:12:13 -07:00
1 parent b1194ebd48
commit 00700c8651
2 files changed
+3 -3

No files matched your search

@@ -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) => {
@@ -106,11 +106,11 @@ const useNotifications = () => {
}
};
return {
return [
loading,
error,
sendTestNotification
};
];
};
export default useNotifications;