X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FItem.js;fp=resources%2Fjs%2Fcomponents%2Frounds%2FItem.js;h=817069f98dc1fb7552188ed0cbfcb80a9d326dcd;hb=b27a83336ff215aa7a0eef55e39b9af36d7547ab;hp=3197f6d9aa64da0a8df2c68a02b7f1a522deae7b;hpb=90c7102cea4af9b07eb5232fd720f4b2714f44ed;p=alttp.git diff --git a/resources/js/components/rounds/Item.js b/resources/js/components/rounds/Item.js index 3197f6d..817069f 100644 --- a/resources/js/components/rounds/Item.js +++ b/resources/js/components/rounds/Item.js @@ -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({ }),