Skip to content

Commit

Permalink
Update to pass skipavailabilitycheck through (#91771)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixhours committed Jun 20, 2024
1 parent 0a9519c commit 3551351
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/lib/presales-chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export function usePresalesChat( keyType: KeyType, enabled = true, skipAvailabil
const isWpMobileAppUser = isWpMobileApp();
const group = getGroupName( keyType );

const { data: canConnectToZendesk } = useCanConnectToZendesk();
const { data: canConnectToZendesk } = useCanConnectToZendesk(
enabled && ! skipAvailabilityCheck
);
const isEligibleForPresalesChat =
enabled && isEnglishLocale && canConnectToZendesk && ! isWpMobileAppUser;

Expand Down

0 comments on commit 3551351

Please sign in to comment.