fix success message
This commit is contained in:
1 parent
40393f3fef
commit
9a517c239f
1 file changed
+5
-1
@@ -134,7 +134,11 @@ const CreateStatusPage = () => {
|
|||||||
if (typeof error === "undefined") {
|
if (typeof error === "undefined") {
|
||||||
const success = await createStatusPage({ form });
|
const success = await createStatusPage({ form });
|
||||||
if (success) {
|
if (success) {
|
||||||
createToast({ body: "Status page created successfully" });
|
createToast({
|
||||||
|
body: isCreate
|
||||||
|
? "Status page created successfully"
|
||||||
|
: "Status page updated successfully",
|
||||||
|
});
|
||||||
navigate(`/status/uptime/${form.url}`);
|
navigate(`/status/uptime/${form.url}`);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user