diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index 0280cd1d54..ed702f6718 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -130,14 +130,18 @@ const triggerAutomationHandler = async action => { fields, timeout, }) - if (!notificationOverride) { - notificationStore.actions.success("Automation triggered") - } // Value will exist if automation is synchronous, so return it. if (result.value) { + if (!notificationOverride) { + notificationStore.actions.success("Automation ran successfully") + } return { result } } + + if (!notificationOverride) { + notificationStore.actions.success("Automation triggered") + } } catch (error) { // Abort next actions return false