X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FItem.js;h=817069f98dc1fb7552188ed0cbfcb80a9d326dcd;hb=8c8219f8c3d6beb4bab030f9b50caeb0eeffc32a;hp=92f55a06791098adda7b299ebf241665874ccdff;hpb=4f4b2fd64141cbbff953881e2705602a00b85df5;p=alttp.git diff --git a/resources/js/components/rounds/Item.js b/resources/js/components/rounds/Item.js index 92f55a0..817069f 100644 --- a/resources/js/components/rounds/Item.js +++ b/resources/js/components/rounds/Item.js @@ -51,7 +51,7 @@ const Item = ({ {i18n.t('rounds.date', { date: new Date(round.created_at) })}

- {round.code ? + {round.code && round.code.length ? <>
@@ -73,6 +73,9 @@ const Item = ({ />

: null} + {tournament.type === 'open-async' && round.results && round.results.length ? +

{i18n.t('rounds.numberOfResults', { count: round.results.length })}

+ : null}
{mayEditRound(user, tournament, round) ? @@ -91,12 +94,15 @@ Item.propTypes = { game: PropTypes.string, locked: PropTypes.bool, number: PropTypes.number, + results: PropTypes.arrayOf(PropTypes.shape({ + })), seed: PropTypes.string, title: PropTypes.string, }), tournament: PropTypes.shape({ participants: PropTypes.arrayOf(PropTypes.shape({ })), + type: PropTypes.string, }), user: PropTypes.shape({ }),