Skip to content

Commit

Permalink
fix: choice quiz error when no code provided
Browse files Browse the repository at this point in the history
  • Loading branch information
dynilath committed Jun 22, 2024
1 parent 12f46e4 commit 7b11405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/.vuepress/components/Choices.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="multiple-choice-question">
<p>{{ text }}</p>
<div class="language-container">
<div class="language-container" v-if="code">
<ShikiRenderer :code="code" language="cpp"/>
</div>
<div v-for="(option, index) in options" :key="index" class="option">
Expand Down

0 comments on commit 7b11405

Please sign in to comment.