Skip to content

Commit

Permalink
Remove bizarre commas from variable in JSX
Browse files Browse the repository at this point in the history
gh-250

For some reason that is very hard to Google for, when I had
{window.location.origin} in the JSX that I'm changing here, it put a
comma before and after the string!
  • Loading branch information
douglasnaphas committed Mar 19, 2022
1 parent 7f3d88f commit a3e1da1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/ExplainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ class ExplainPage extends Component {
</Typography>
<Typography component="p" paragraph>
<StageDirection>
Wait for everyone to go to {window.location.host} and click “join a
seder.”
{`Wait for everyone to go to ${window.location.host} and click “join a seder.”`}
</StageDirection>
</Typography>
<Typography component="p" paragraph>
Expand Down

0 comments on commit a3e1da1

Please sign in to comment.