Skip to content

Commit 3576747

Browse files
authored
Nuzhy/TRAH-5083/whatsapp icon missing issue (#17904)
* fix: remove livechat check for whatsapp * fix: update to check intercom for whatsapp
1 parent 6564b3a commit 3576747

File tree

1 file changed

+5
-7
lines changed
  • packages/core/src/App/Components/Elements/WhatsApp

1 file changed

+5
-7
lines changed

packages/core/src/App/Components/Elements/WhatsApp/whatsapp.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
import React, { Fragment } from 'react';
2-
import { Popover, Icon } from '@deriv/components';
2+
3+
import { Icon, Popover } from '@deriv/components';
4+
import { useIsIntercomAvailable, useIsLiveChatWidgetAvailable } from '@deriv/hooks';
35
import { localize } from '@deriv/translations';
46
import { useDevice } from '@deriv-com/ui';
57
import { URLConstants } from '@deriv-com/utils';
6-
import { useGrowthbookGetFeatureValue, useIsLiveChatWidgetAvailable } from '@deriv/hooks';
78

89
const WhatsApp = ({ showPopover, onClick }: { showPopover?: boolean; onClick?: () => void }) => {
910
const { isDesktop } = useDevice();
1011

1112
const { is_livechat_available } = useIsLiveChatWidgetAvailable();
13+
const icAvailable = useIsIntercomAvailable();
1214

13-
const [enable_freshworks_live_chat] = useGrowthbookGetFeatureValue({
14-
featureFlag: 'enable_freshworks_live_chat',
15-
});
16-
17-
if (!is_livechat_available && !enable_freshworks_live_chat) return null;
15+
if (!is_livechat_available && !icAvailable) return null;
1816

1917
if (!isDesktop)
2018
return (

0 commit comments

Comments
 (0)