diff --git a/packages/client/src/api/automations.js b/packages/client/src/api/automations.js index 6a85bf077f..4dd5958568 100644 --- a/packages/client/src/api/automations.js +++ b/packages/client/src/api/automations.js @@ -9,7 +9,7 @@ export const triggerAutomation = async (automationId, fields) => { body: { fields }, }) res.error - ? notificationStore.danger("En error has occurred") + ? notificationStore.danger("An error has occurred") : notificationStore.success("Automation triggered") return res } diff --git a/packages/client/src/api/queries.js b/packages/client/src/api/queries.js index ac6d185f4c..5912524023 100644 --- a/packages/client/src/api/queries.js +++ b/packages/client/src/api/queries.js @@ -12,7 +12,7 @@ export const executeQuery = async ({ queryId, parameters }) => { }, }) res.error - ? notificationStore.danger("En error has occurred") + ? notificationStore.danger("An error has occurred") : notificationStore.success("Query successful") - return response + return res }