Pénalité lorsqu'on échoue un défi

This commit is contained in:
2024-12-13 00:02:58 +01:00
parent 63ad84eb8c
commit 4cb2677f45
6 changed files with 34 additions and 9 deletions

View File

@ -70,7 +70,7 @@ function ChallengeScreenBody() {
challenge={currentChallenge}
onSuccess={() => { setLoading(true); endChallenge.mutate({ success: true }) }}
onFail={() => endChallenge.mutate({ success: false })} />}
{!loading && !currentChallenge && game.currentRunner && <>
{!loading && !game.penaltyEnd && !currentChallenge && game.currentRunner && <>
<Banner
visible={!currentChallenge && game.currentRunner && !loading}
icon='cancel'