]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/rounds/Item.js
lock rounds
[alttp.git] / resources / js / components / rounds / Item.js
index 10549dd151a5f52048e0fd56c19c0288e55ac92b..d8fe9d8b1ccc88983b2f843c712481fbffe260b3 100644 (file)
@@ -34,7 +34,7 @@ const Item = ({
                                tournament={tournament}
                        />
                </p>
-               {isParticipant(user, tournament) ?
+               {!round.locked && isParticipant(user, tournament) ?
                        <p className="report">
                                <ReportButton
                                        participant={findParticipant(tournament, user)}
@@ -51,6 +51,7 @@ Item.propTypes = {
        round: PropTypes.shape({
                code: PropTypes.arrayOf(PropTypes.string),
                created_at: PropTypes.string,
+               locked: PropTypes.bool,
                number: PropTypes.number,
                seed: PropTypes.string,
        }),