From 219209c6caa4ebb23838b3fc5978ab40cb1ef960 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Mon, 4 Jan 2016 19:46:45 -0500 Subject: [PATCH] Fix logic glitch in {{sectionTitle}} helper. --- src/eng/generic-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eng/generic-helpers.js b/src/eng/generic-helpers.js index 314f263..0c73fdf 100644 --- a/src/eng/generic-helpers.js +++ b/src/eng/generic-helpers.js @@ -54,7 +54,7 @@ Generic template helper definitions for HackMyResume / FluentCV. // If not provided by the user, stitle should default to sname. ps. // Handlebars silently passes in the options object to the last param, // where in Underscore stitle will be null/undefined, so we check both. - stitle = (stitle && String.is(stitle)) || sname; + stitle = (stitle && String.is(stitle) && stitle) || sname; // If there's a section title override, use it. return ( this.opts.stitles &&