Skip to content

Commit

Permalink
Merge branch 'whitelist_players' of https://github.com/1Hive/quests i…
Browse files Browse the repository at this point in the history
…nto whitelist_players
  • Loading branch information
Corantin committed Aug 23, 2023
2 parents 66f2acd + a60c4e3 commit 2e7305c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default function QuestModal({
try {
let txPayload: TransactionModel = {
modalId,
message: `Creating Quest (2/${values.bounty?.parsedAmount ? '4' : '3'})`,
message: `Creating Quest (2/${totalTransactionSteps})`,
status: TransactionStatus.WaitingForSignature,
type: TransactionType.QuestCreate,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,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
4 changes: 2 additions & 2 deletions packages/react-app/src/components/quest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,12 @@ export default function Quest({
walletAddress === questData.creatorAddress) && (
<PlayerListModal
questData={questData}
isEdit={walletAddress === questData.creatorAddress}
isEdit={walletAddress === questData.creatorAddress && questData.isWhitelist}
/>
)}
<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 2e7305c

Please sign in to comment.