Simplify alert message

This commit is contained in:
Mikko Ahlroth 2019-06-25 15:24:09 +03:00
parent 28304e673f
commit 841a0506e3

View file

@ -103,9 +103,7 @@ class BudgetCreateComponent extends LitElement {
></input-field>
<fa-button @click=${this.onCreate}>Create budget</fa-button>
<p role="alert" aria-atomic="true" aria-relevant="all">
${this.hasError ? 'Could not create budget, check the amount and currency.' : null}
</p>
${this.hasError ? html`<p role="alert">Could not create budget, check the amount and currency.</p>` : null}
`
}
}