Skip to content

Commit 4739069

Browse files
author
codingChewie
committed
Adding Links
1 parent 9e7de01 commit 4739069

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routes/cards.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ router.get('/:id', (req, res) => {
1212
const text = cards[id][side]
1313
const { hint } = cards[id]
1414

15-
const templateData = { text, hint }
15+
const templateData = { text }
16+
if (side === 'question') templateData.hint = hint
1617
res.render('card', templateData)
1718
})
1819

0 commit comments

Comments
 (0)