1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-23 05:37:23 +00:00

Fix logic glitch in {{sectionTitle}} helper.

This commit is contained in:
hacksalot 2016-01-04 19:46:45 -05:00
parent eff9fc51cb
commit 219209c6ca

View File

@ -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 &&