[fix] lore activation without first key

This commit is contained in:
kwaroran
2023-05-12 22:20:57 +09:00
parent 23fe3ae484
commit 3e34c17f3b
4 changed files with 14 additions and 12 deletions

View File

@@ -16,7 +16,7 @@
value.secondkey = value.secondkey ?? ''
open = !open
}}>
<span>{value.comment.length === 0 ? 'Unnamed Lore' : value.comment}</span>
<span>{value.comment.length === 0 ? value.key.length === 0 ? "Unnamed Lore" : value.key : value.comment}</span>
</button>
<button class="valuer" on:click={async () => {
const d = await alertConfirm(language.removeConfirm + value.comment)