Skip to content

Commit

Permalink
fix(ui): TE-XXXX create alert redirect modal persist fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nalin-patidar committed Jan 21, 2025
1 parent 5b19bda commit a1f01b0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export const CreateAlertModal: FunctionComponent<CreateAlertModalModalProps> =
okButtonText: t("label.confirm"),
cancelButtonText: t("label.cancel"),
onOk: () => checkQuota(),
keepDialogOnOk: true,
keepDialogOnOk: !!(
remainingQuota && remainingQuota?.detection <= 0
),
});
} else {
checkQuota();
Expand Down

0 comments on commit a1f01b0

Please sign in to comment.