Skip to content

Commit 1a4fb78

Browse files
committed
check value instead of type
1 parent 3293ed0 commit 1a4fb78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/process-learning-tracks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = async function processLearningTracks (rawLearningTracks, contex
3434
if (track.featured_track) {
3535
// Featured track properties may be booleans or string that include Liquid conditionals with versioning.
3636
// 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')
37+
isFeaturedTrack = track.featured_track === true || (await renderContent(track.featured_track, context, renderOpts) === 'true')
3838

3939
if (isFeaturedTrack) {
4040
featuredTrack = learningTrack

0 commit comments

Comments
 (0)