refacto(#118): remove last toaster on start deployments

This commit is contained in:
Mauricio Siu
2024-06-06 00:11:46 -06:00
parent 0c197c095b
commit 7fb34ade00
7 changed files with 29 additions and 56 deletions

View File

@@ -49,18 +49,14 @@ export const DeployCompose = ({ composeId }: Props) => {
composeStatus: "running",
})
.then(async () => {
toast.success("Compose Deploying....");
toast.success("Deploying Compose....");
await refetch();
await deploy({
composeId,
})
.then(() => {
toast.success("Compose Deployed Succesfully");
})
.catch(() => {
toast.error("Error to deploy Compose");
});
}).catch(() => {
toast.error("Error to deploy Compose");
});
await refetch();
})