Skip to content

Commit

Permalink
Help Center: Ensure only eligible users can contact support for feedb…
Browse files Browse the repository at this point in the history
…ack form buttons (#96785)
  • Loading branch information
agrullon95 authored Nov 26, 2024
1 parent 68e5caa commit 85b7552
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ const HelpCenterFeedbackForm = ( {

const handleContactSupportClick = async () => {
generateContactOnClickEvent( 'chat', 'calypso_helpcenter_feedback_contact_support' );
await resetSupportInteraction();
startNewInteraction( {
event_source: 'help-center',
event_external_id: uuidv4(),
} );
navigate( '/odie' );
if ( isUserEligibleForPaidSupport ) {
await resetSupportInteraction();
startNewInteraction( {
event_source: 'help-center',
event_external_id: uuidv4(),
} );
navigate( '/odie' );
}
};

return (
Expand Down

0 comments on commit 85b7552

Please sign in to comment.