Skip to content

Commit

Permalink
Merge pull request #1752 from lumi-tip/development-lumi-8122
Browse files Browse the repository at this point in the history
♻️ small refactor based to avoid useless request
  • Loading branch information
tommygonzaleza authored Jan 7, 2025
2 parents c76f547 + 9929bfa commit d99a097
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 122 deletions.
Binary file modified bun.lockb
Binary file not shown.
120 changes: 0 additions & 120 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ function SyllabusContent() {
currentTranslationSlug = `${lessonSlug}-${language}`;
}
Promise.all([
axios.get(`${BREATHECODE_HOST}/v1/registry/asset/${currentTranslationSlug}.md`),
assetTypeValues[lesson] !== 'QUIZ' && axios.get(`${BREATHECODE_HOST}/v1/registry/asset/${currentTranslationSlug}.md`),
axios.get(`${BREATHECODE_HOST}/v1/registry/asset/${currentTranslationSlug}?asset_type=${assetTypeValues[lesson]}`),
])
.then(([respMarkdown, respData]) => {
Expand Down Expand Up @@ -1046,7 +1046,7 @@ function SyllabusContent() {
/>
)}

{isQuiz ? (
{isQuiz && quizSlug ? (
<Box background={featuredColor} width="100%" height={isAvailableAsSaas ? '100%' : '100vh'} borderRadius="14px">
<iframe
id="iframe"
Expand Down

0 comments on commit d99a097

Please sign in to comment.