From 179851181168329fb061e0c7380497e4bc38537a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Mon, 25 Jan 2021 13:36:35 +0100 Subject: [PATCH] fix typos and linting issues --- packages/client/src/api/automations.js | 2 +- packages/client/src/api/queries.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }