Use explicit type checking.
This commit is contained in:
1 parent
9aa0041022
commit
b811fb91ca
1 file changed
+1
-1
+1
-1
@@ -138,7 +138,7 @@ const NotificationIntegrationModal = ({
|
|||||||
// Get the notification type details
|
// Get the notification type details
|
||||||
const notificationType = activeNotificationTypes.find(t => t.id === type);
|
const notificationType = activeNotificationTypes.find(t => t.id === type);
|
||||||
|
|
||||||
if (notificationType === undefined) {
|
if (typeof notificationType === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user