mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 13:57:54 +00:00
fix: fix rendering crash when the description is empty
This commit is contained in:
parent
8d8d7e48ed
commit
c07147ec65
1 changed files with 6 additions and 1 deletions
|
|
@ -6,7 +6,12 @@
|
|||
export let user;
|
||||
export let editMode: boolean;
|
||||
|
||||
$: htmlDescription = toHTML(user.description, {embed: true});
|
||||
let htmlDescription: string;
|
||||
if (user.description) {
|
||||
htmlDescription = toHTML(user.description, {embed: true});
|
||||
} else {
|
||||
htmlDescription = "(no description)";
|
||||
}
|
||||
|
||||
let created = moment(user.created).format("MMM D, YYYY");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue