From a60c4e353f3117104285b7730ab15276b283374f Mon Sep 17 00:00:00 2001 From: kafann <75225303+kafann@users.noreply.github.com> Date: Tue, 22 Aug 2023 22:57:47 -0400 Subject: [PATCH] Done foreal --- .../react-app/src/components/modals/player-list-modal.tsx | 3 ++- packages/react-app/src/components/quest.tsx | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-app/src/components/modals/player-list-modal.tsx b/packages/react-app/src/components/modals/player-list-modal.tsx index 2e92c3ce..13623d87 100644 --- a/packages/react-app/src/components/modals/player-list-modal.tsx +++ b/packages/react-app/src/components/modals/player-list-modal.tsx @@ -129,7 +129,8 @@ export default function PlayerListModal({ : 'View Player List' } mode="strong" - title="Player List" + title={!isEdit && !players.length ? 'No players' : 'View players'} + disabled={!isEdit && !players.length} /> } diff --git a/packages/react-app/src/components/quest.tsx b/packages/react-app/src/components/quest.tsx index 73e7750b..6c78cbbd 100644 --- a/packages/react-app/src/components/quest.tsx +++ b/packages/react-app/src/components/quest.tsx @@ -462,16 +462,15 @@ export default function Quest({ <> {((players.length > 0 && !isSummary) || walletAddress === questData.creatorAddress) && ( - // )} - {/* */} + {(((!isPlayingQuest || questData.creatorAddress === walletAddress) && - questData.isWhitelist) || + !questData.isWhitelist) || (waitForClose && transaction?.type === TransactionType.QuestPlay)) && questData.features?.playableQuest && (