From 72c212dc036c643dca43e1c22a7ec43384f70ab5 Mon Sep 17 00:00:00 2001 From: Jonas Metzener Date: Tue, 20 Sep 2022 16:51:28 +0200 Subject: [PATCH] fix(label): only show requiredness indicator if a label is given --- addon/components/validated-input/label.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/components/validated-input/label.hbs b/addon/components/validated-input/label.hbs index 5898f130..415dbe10 100644 --- a/addon/components/validated-input/label.hbs +++ b/addon/components/validated-input/label.hbs @@ -3,5 +3,5 @@ for={{@inputId}} ...attributes > - {{yield}}{{@label}}{{if @required " *"}} + {{yield}}{{@label}}{{if (and @label @required) " *"}} \ No newline at end of file