mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
Send Test Notification Type fix
This commit is contained in:
@@ -17,7 +17,7 @@ export const NotificationSettings = ({ onError, onSuccess }: { onError: (message
|
||||
const testNotificationHandler = async (notificationProviderId: number) => {
|
||||
(document.getElementById('test_notification') as HTMLDialogElement)?.showModal();
|
||||
const notificationTest = await testNotification(notificationProviderId);
|
||||
setNotificationTestId(notificationTest.id);
|
||||
setNotificationTestId(notificationTest);
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -13,9 +13,11 @@ export default function TestNotification({ notificationTestId }: TestNotificatio
|
||||
|
||||
|
||||
const checkNotificationTest = async () => {
|
||||
console.log(notificationTestId);
|
||||
await getNotificationTest(notificationTestId);
|
||||
}
|
||||
useEffect(() => {
|
||||
checkNotificationTest();
|
||||
}, [notificationTestId]);
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user