Skip to content

Commit

Permalink
Returned sendDataDogAction and secondaryButtonText string to original…
Browse files Browse the repository at this point in the history
… state
  • Loading branch information
tynyttie committed Feb 7, 2025
1 parent 729f64b commit faf31aa
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,13 @@ const SettingsPage = () => {
isSharing ? 'out of' : 'back in to'
} sharing your electronic health information?`;
const primaryButtonText = isSharing ? 'Opt out - Modal' : 'Opt in - Modal';
const secondaryButtonText = isSharing
? "Don't Opt out - Modal"
: "Don't Opt in - Modal";
const secondaryButtonText = isSharing ? "Don't opt out" : "Don't opt in";
return (
<VaModal
modalTitle={title}
onCloseEvent={() => {
handleCloseModal();
sendDataDogAction(
`Close ${isSharing ? 'Opt out - Modal' : 'Opt in - Modal'}`,
);
sendDataDogAction(`Close opt ${isSharing ? 'out' : 'in'} modal`);
}}
onPrimaryButtonClick={() => {
handleUpdateSharing(isSharing);
Expand Down

0 comments on commit faf31aa

Please sign in to comment.