Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass in this
Browse files Browse the repository at this point in the history
btkostner authored Feb 20, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6e21087 commit 9559049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlebars.ts
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@ Handlebars.registerHelper("or", function (...params) {

for (const value of params) {
if (value) {
return options.fn();
return options.fn(this);
}
}

return options.inverse();
return options.inverse(this);
});

export default Handlebars;

0 comments on commit 9559049

Please sign in to comment.