aboutsummaryrefslogtreecommitdiff
path: root/views/home.handlebars
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-05-07 01:27:03 +0200
committerMateja <mail@matejamaric.com>2021-05-07 01:27:03 +0200
commit7d433d186eda4ec5cbd5cc851491a07691551839 (patch)
tree41b79700ec2899b9e31c4a9bf860835519af2aba /views/home.handlebars
parentb99ff3787373aec8b0d679f301609361d39362e4 (diff)
downloadnode-playground-7d433d186eda4ec5cbd5cc851491a07691551839.tar.gz
node-playground-7d433d186eda4ec5cbd5cc851491a07691551839.zip
Fix: `Remove` button visibility
Variable `auth` was not accessible inside `each` helper.
Diffstat (limited to 'views/home.handlebars')
-rw-r--r--views/home.handlebars2
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>