Fix success notification message on reminder updates

This commit is contained in:
carlosmonastyrski
2025-03-03 17:04:02 -03:00
parent ec9631107d
commit 17a4674821
@@ -238,12 +238,13 @@ export const SecretListView = ({
if (!isReminderEvent) { if (!isReminderEvent) {
handlePopUpClose("secretDetail"); handlePopUpClose("secretDetail");
} }
const successMessage = isReminderEvent ? "secret reminder" : "secrets";
createNotification({ createNotification({
type: isProtectedBranch && !personalAction ? "info" : "success", type: isProtectedBranch && !personalAction ? "info" : "success",
text: text:
isProtectedBranch && !personalAction isProtectedBranch && !personalAction
? "Requested changes have been sent for review" ? "Requested changes have been sent for review"
: "Successfully saved secrets" : `Successfully saved ${successMessage}`
}); });
} catch (error) { } catch (error) {
console.log(error); console.log(error);