Skip to content

Commit

Permalink
Done foreal
Browse files Browse the repository at this point in the history
  • Loading branch information
kafann committed Aug 23, 2023
1 parent 839e16b commit a60c4e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
</OpenButtonWrapperStyled>
}
Expand Down
7 changes: 3 additions & 4 deletions packages/react-app/src/components/quest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -462,16 +462,15 @@ export default function Quest({
<>
{((players.length > 0 && !isSummary) ||
walletAddress === questData.creatorAddress) && (
// <PlayersModalWrapperStyled>
<PlayerListModal
questData={questData}
isEdit={walletAddress === questData.creatorAddress}
isEdit={walletAddress === questData.creatorAddress && questData.isWhitelist}
/>
)}
{/* </PlayersModalWrapperStyled> */}

<FundModal quest={questData} />
{(((!isPlayingQuest || questData.creatorAddress === walletAddress) &&
questData.isWhitelist) ||
!questData.isWhitelist) ||
(waitForClose && transaction?.type === TransactionType.QuestPlay)) &&
questData.features?.playableQuest && (
<PlayModal
Expand Down

0 comments on commit a60c4e3

Please sign in to comment.