diff options
author | Mateja <mail@matejamaric.com> | 2021-05-07 01:27:03 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-05-07 01:27:03 +0200 |
commit | 7d433d186eda4ec5cbd5cc851491a07691551839 (patch) | |
tree | 41b79700ec2899b9e31c4a9bf860835519af2aba /views | |
parent | b99ff3787373aec8b0d679f301609361d39362e4 (diff) | |
download | node-playground-7d433d186eda4ec5cbd5cc851491a07691551839.tar.gz node-playground-7d433d186eda4ec5cbd5cc851491a07691551839.zip |
Fix: `Remove` button visibility
Variable `auth` was not accessible inside `each` helper.
Diffstat (limited to 'views')
-rw-r--r-- | views/home.handlebars | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/home.handlebars b/views/home.handlebars index 7f48f65..b719d75 100644 --- a/views/home.handlebars +++ b/views/home.handlebars @@ -10,7 +10,7 @@ <div class="card-text"> {{{this.text}}} </div> - {{#if auth}} + {{#if ../auth}} <a href="/remove-post/{{this._id}}" class="badge float-end">Remove</a> {{/if}} </div> |