Skip to content

Commit

Permalink
fix two open tabs bug
Browse files Browse the repository at this point in the history
  • Loading branch information
djnunez-aot committed Aug 2, 2023
1 parent bb6990d commit e6b7f63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions met-web/src/components/landing/EngagementTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ const EngagementTile = ({ passedEngagement, engagementId }: EngagementTileProps)
<Then>
<PrimaryButton
fullWidth
onClick={() => {
onClick={(event: React.MouseEvent) => {
event.stopPropagation();
window.open(engagementUrl, '_blank');
}}
>
Expand All @@ -133,7 +134,8 @@ const EngagementTile = ({ passedEngagement, engagementId }: EngagementTileProps)
<Else>
<SecondaryButton
fullWidth
onClick={() => {
onClick={(event: React.MouseEvent) => {
event.stopPropagation();
window.open(engagementUrl, '_blank');
}}
>
Expand Down

0 comments on commit e6b7f63

Please sign in to comment.