From fc34169d587dd6e09ee805d4256c258340746b3a Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Sat, 16 Oct 2021 22:52:59 +0700 Subject: [PATCH] Fix constellation number on list view --- src/routes/characters/index.svelte | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/routes/characters/index.svelte b/src/routes/characters/index.svelte index 2d9235fe..3f2f2659 100644 --- a/src/routes/characters/index.svelte +++ b/src/routes/characters/index.svelte @@ -458,14 +458,17 @@ {char.name} - {char.name} + {char.name} {char.element.name} - C{constellation[id] - ? Math.max(0, constellation[id].default + constellation[id].wish + constellation[id].manual - 1) - : 0} + {constellation[id] + ? `C${Math.max( + 0, + constellation[id].default + constellation[id].wish + constellation[id].manual - 1, + )}` + : '-'}