Skip to content

Commit 1cde09d

Browse files
author
codingChewie
committed
Linking Around the Application
1 parent 0efc451 commit 1cde09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/cards.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ router.get('/:id', (req, res) => {
1717
const { side } = req.query
1818
const { id } = req.params
1919

20-
if (!side) res.redirect(`/cards/${id}?side=question`)
20+
if (!side) return res.redirect(`/cards/${id}?side=question`)
2121

2222
const name = req.cookies.username
2323
const text = cards[id][side]

0 commit comments

Comments
 (0)