We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3293ed0 commit 1a4fb78Copy full SHA for 1a4fb78
1 file changed
lib/process-learning-tracks.js
@@ -34,7 +34,7 @@ module.exports = async function processLearningTracks (rawLearningTracks, contex
34
if (track.featured_track) {
35
// Featured track properties may be booleans or string that include Liquid conditionals with versioning.
36
// We need to parse any strings to determine if the featured track is relevant for this version.
37
- isFeaturedTrack = typeof track.featured_track === 'boolean' || (await renderContent(track.featured_track, context, renderOpts) === 'true')
+ isFeaturedTrack = track.featured_track === true || (await renderContent(track.featured_track, context, renderOpts) === 'true')
38
39
if (isFeaturedTrack) {
40
featuredTrack = learningTrack
0 commit comments