This commit is contained in:
Bram Kragten 2022-12-05 14:31:44 +01:00
parent f18997c7c3
commit 4fcfcbeefb
No known key found for this signature in database
GPG Key ID: FBE2DFDB363EF55B

View File

@ -130,12 +130,13 @@ class DialogCalendarEventDetail extends LitElement {
private _renderRruleAsText(value: string) {
// TODO: Make sure this handles translations
if (!value) {
return "";
}
try {
const readableText =
value === ""
? ""
: capitalizeFirstLetter(RRule.fromString(`RRULE:${value}`).toText());
return html`<div id="text">${readableText}</div>`;
return html`<div id="text">
${capitalizeFirstLetter(RRule.fromString(`RRULE:${value}`).toText())}
</div>`;
} catch (e) {
return "";
}