From f87100138bd8a1248ef4072fc53b75b841f1a511 Mon Sep 17 00:00:00 2001 From: M1kola Date: Thu, 13 Jul 2023 15:55:09 +0300 Subject: [PATCH 1/2] task files --- src/utils/helper.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils/helper.js b/src/utils/helper.js index bfe7f050..31c787e2 100644 --- a/src/utils/helper.js +++ b/src/utils/helper.js @@ -45,10 +45,7 @@ export const urlHasParams = (url) => export const urlForLocal = (url) => process.env.NODE_ENV === "development" ? `https://itguild.info${url}` : url; -export const backendImg = (url) => - process.env.NODE_ENV === "development" - ? `https://back.itguild.info${url}` - : url; +export const backendImg = (url) => `https://back.itguild.info${url}` export function scrollToForm() { window.scrollTo({ From 242f298bee1bdd99d0d85e76127eeb84f7a75ea6 Mon Sep 17 00:00:00 2001 From: M1kola Date: Thu, 13 Jul 2023 15:55:25 +0300 Subject: [PATCH 2/2] task files --- src/utils/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helper.js b/src/utils/helper.js index 31c787e2..eccfa1a7 100644 --- a/src/utils/helper.js +++ b/src/utils/helper.js @@ -45,7 +45,7 @@ export const urlHasParams = (url) => export const urlForLocal = (url) => process.env.NODE_ENV === "development" ? `https://itguild.info${url}` : url; -export const backendImg = (url) => `https://back.itguild.info${url}` +export const backendImg = (url) => `https://back.itguild.info${url}`; export function scrollToForm() { window.scrollTo({