feat: release version 1.0.6
This commit is contained in:
@@ -209,10 +209,6 @@
|
||||
greenEfficiencyError = '';
|
||||
}
|
||||
|
||||
function efficiencyMemberSelectedInAnotherSlot(card: CardSummary, slot: number): boolean {
|
||||
return efficiencyFormation.cardIds.some((id, index) => index !== slot && cardById.get(id)?.characterId === card.characterId);
|
||||
}
|
||||
|
||||
function updateEfficiencyCard(slot: number, cardId: string) {
|
||||
const cardIds = efficiencyFormation.cardIds.map((id, index) => index === slot ? cardId : id);
|
||||
const awakenings = efficiencyFormation.awakenings.map((value, index) => index === slot
|
||||
@@ -1224,7 +1220,7 @@
|
||||
<select value={selectedId} on:change={(event) => updateEfficiencyCard(slot, event.currentTarget.value)}>
|
||||
<option value="">선택 안 함</option>
|
||||
{#each fiveStarCards as card}
|
||||
<option value={card.id} disabled={efficiencyMemberSelectedInAnotherSlot(card, slot)}>{userData.collection[card.id]?.owned ? '● ' : ''}{cardLabel(card)}</option>
|
||||
<option value={card.id} disabled={efficiencyFormation.cardIds.some((id, index) => index !== slot && cardById.get(id)?.characterId === card.characterId)}>{userData.collection[card.id]?.owned ? '● ' : ''}{cardLabel(card)}</option>
|
||||
{/each}
|
||||
</select>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user