From 38a5b1d68a53a5740112c59424c7be195fdfb0a5 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Tue, 31 Oct 2023 11:04:45 +0100 Subject: [PATCH] Add warning for all drop sources being hidden Signed-off-by: Tomas Slusny --- site/src/views/CardsView.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/site/src/views/CardsView.js b/site/src/views/CardsView.js index 9e245110..138a1f2f 100644 --- a/site/src/views/CardsView.js +++ b/site/src/views/CardsView.js @@ -44,6 +44,19 @@ const CardList = ({ card, voidstones }) => {
{card.drop.text}
) + } else if ( + card.maps.length === 0 && + card.monsters.length === 0 && + (card.drop.text || card.drop.monsters.length > 0 || card.drop.areas.length) > 0 + ) { + cardNotice = ( +
+
+ {card.name} has drop sources but they are hidden with filters, adjust Map Display or{' '} + Atlas voidstones to see them. +
+
+ ) } return (