Merge pull request #2492 from bluewave-labs/fix/notifications-loading-state

fix: button loading state
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-06-23 08:49:15 +08:00
commit 2161ef4388
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -161,7 +161,7 @@ const useTestNotification = () => {
} catch (error) {
setError(error);
createToast({
body: t("notifications.test.failed"),
body: error?.response?.data?.msg || t("notifications.test.failed"),
});
} finally {
setIsLoading(false);
@@ -204,7 +204,7 @@ const CreateNotifications = () => {
spacing={theme.spacing(2)}
>
<Button
loading={isCreating || isEditing || notificationIsLoading}
loading={isTesting}
variant="contained"
color="secondary"
onClick={onTestNotification}