From 8994b4b39bb52d7e3bf3e4fbfb3198a0d9c7eccc Mon Sep 17 00:00:00 2001 From: Skorpios Date: Sun, 16 Mar 2025 13:15:25 -0700 Subject: [PATCH] Use undefined instead of null for conventional purposes. --- .../NotificationIntegrationModal/Hooks/useNotification.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/NotificationIntegrationModal/Hooks/useNotification.js b/src/Components/NotificationIntegrationModal/Hooks/useNotification.js index b4f38dc80..20b6149b6 100644 --- a/src/Components/NotificationIntegrationModal/Hooks/useNotification.js +++ b/src/Components/NotificationIntegrationModal/Hooks/useNotification.js @@ -24,7 +24,7 @@ const FIELD_IDS = { */ const useNotifications = () => { const [loading, setLoading] = useState(false); - const [error, setError] = useState(null); + const [error, setError] = useState(undefined); const { t } = useTranslation(); /** @@ -34,7 +34,7 @@ const useNotifications = () => { */ const sendTestNotification = async (type, config) => { setLoading(true); - setError(null); + setError(undefined); // Validation based on notification type let payload = { platform: type };