Support Truthtrance in ordered Charity
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 08:57:58 +11:00
1 parent 31c6e79c80
commit 68c7434a20
11 files changed
+425 -19

No files matched your search

+4 -1
View File
@@ -22,7 +22,9 @@ export function CharityClaim(props: Props) {
!!game.response || !!game.decision || !!game.phaseOpening || !!game.automaticContinuationPending ||
!ownTurn || !!game.charity.orderBlocked;
const canClaim = !blocked && !game.charity.truthBlocked && !me.charityClaimed && game.charity.amount > 0;
const canFinish = !!order && !blocked;
const charityYes = !!order && !!game.truthCharityGuide && game.truthCharityPromises.some(promise =>
promise.player === actor && promise.turn === turn && promise.answer && !promise.fulfilled && !promise.released);
const canFinish = !!order && !blocked && !charityYes;
return (
<>
{order && <div className="fine" data-testid="charity-turn-status">
@@ -65,6 +67,7 @@ export function CharityClaim(props: Props) {
: 'Claim charity'}
<ArrowRight size={15} />
</Button>
{charityYes && <p className="fine">Complete your Truthtrance Charity Yes before finishing your turn.</p>}
{order && <Button
data-testid="charity-turn-finish"
className="game-action"