Skip to content

Commit

Permalink
replace instead of push on initial query setting (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
slmjkdbtl committed Oct 8, 2021
1 parent 891198b commit 4e8d721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/pages/play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const Play: React.FC = () => {

React.useEffect(() => {
if (router.isReady && !router.query.demo) {
router.push({
router.replace({
query: {
demo: DEF_DEMO,
},
Expand Down

0 comments on commit 4e8d721

Please sign in to comment.