diff --git a/src/app/(dashboard)/app-store/[id]/components/AppDetailsContainer/AppDetailsContainer.tsx b/src/app/(dashboard)/app-store/[id]/components/AppDetailsContainer/AppDetailsContainer.tsx index 8b95b939..ba6526c9 100644 --- a/src/app/(dashboard)/app-store/[id]/components/AppDetailsContainer/AppDetailsContainer.tsx +++ b/src/app/(dashboard)/app-store/[id]/components/AppDetailsContainer/AppDetailsContainer.tsx @@ -94,11 +94,11 @@ export const AppDetailsContainer: React.FC = ({ app, localDomain }) => { const updateMutation = useAction(updateAppAction, { onSuccess: (data) => { + setCustomStatus(app.status); + if (!data.success) { - setCustomStatus(app.status); toast.error(data.failure.reason); } else { - setCustomStatus('stopped'); toast.success(t('apps.app-details.update-success')); } },