From d1f04548318d741b62b75dde3494fd873ab3efb9 Mon Sep 17 00:00:00 2001 From: Conor Webb <126772285+ConorWebb96@users.noreply.github.com> Date: Tue, 9 Jul 2024 09:55:19 +0100 Subject: [PATCH] Switch the notification messages around as it was stating it was enable/disabled at the wrong times. (#14124) --- packages/builder/src/stores/builder/automations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/stores/builder/automations.js b/packages/builder/src/stores/builder/automations.js index fc55b8cb67..fb46b90235 100644 --- a/packages/builder/src/stores/builder/automations.js +++ b/packages/builder/src/stores/builder/automations.js @@ -146,13 +146,13 @@ const automationActions = store => ({ await store.actions.save(automation) notifications.success( `Automation ${ - automation.disabled ? "enabled" : "disabled" + automation.disabled ? "disabled" : "enabled" } successfully` ) } catch (error) { notifications.error( `Error ${ - automation && automation.disabled ? "enabling" : "disabling" + automation && automation.disabled ? "disabling" : "enabling" } automation` ) }