Skip to content

Commit

Permalink
use string interpolation instead of concat
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceharrison1984 committed Jan 12, 2023
1 parent 8b3f9a5 commit 19aa621
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const EventIntersectionProvider = ({
if (x.isIntersecting)
x.target.setAttribute('style', currentStyle || '');
else {
x.target.setAttribute('style', currentStyle + ' visibility: hidden;');
x.target.setAttribute('style', `${currentStyle} visibility: hidden;`);
}

const matchingEvent = events.find((x) => x.id === eventId);
Expand Down

0 comments on commit 19aa621

Please sign in to comment.