From 5c0f321b008820908f3d8355ffa70f59542b85fc Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 2 Jul 2021 23:45:12 +0530 Subject: [PATCH] feature(ui) - assist actions --- .../Assist/components/AssistActions/AssistActions.tsx | 8 ++++---- frontend/env.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx index 5523eeacc..c2327065f 100644 --- a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx +++ b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx @@ -46,7 +46,7 @@ function AssistActions({ toggleChatWindow, userId, calling }: Props) { }).catch(onError); } - const inCall = calling == CallingState.Requesting || CallingState.True + const inCall = calling == 0 || calling == 1 return (
@@ -54,13 +54,13 @@ function AssistActions({ toggleChatWindow, userId, calling }: Props) { trigger={
} @@ -70,7 +70,7 @@ function AssistActions({ toggleChatWindow, userId, calling }: Props) { position="top right" />
- { showChat && } + { inCall && }
) diff --git a/frontend/env.js b/frontend/env.js index aeb8d1d5f..7e07175b4 100644 --- a/frontend/env.js +++ b/frontend/env.js @@ -5,13 +5,13 @@ require('dotenv').config() const oss = { name: 'oss', - PRODUCTION: true, + PRODUCTION: false, SENTRY_ENABLED: false, SENTRY_URL: "", CAPTCHA_ENABLED: process.env.CAPTCHA_ENABLED === 'true', CAPTCHA_SITE_KEY: process.env.CAPTCHA_SITE_KEY, ORIGIN: () => 'window.location.origin', - API_EDP: () => 'window.location.origin + "/api"', + API_EDP: 'https://do.openreplay.com/api', ASSETS_HOST: () => 'window.location.origin + "/assets"', VERSION: '1.0.0', SOURCEMAP: true,