]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/rounds/LockDialog.js
hide lock warning for open rounds
[alttp.git] / resources / js / components / rounds / LockDialog.js
index 690e85c71d5c9dfd3c97bf84031541a611616b4c..6174dbf9f8474ccfeea999e5202363079f10deae 100644 (file)
@@ -25,7 +25,7 @@ const LockDialog = ({
                        ? 'rounds.unlockDescription'
                        : 'rounds.lockDescription')}
                </p>
-       {!round.locked && !isComplete(tournament, round) ?
+       {!round.locked && tournament.type === 'signup-async' && !isComplete(tournament, round) ?
                <Alert variant="warning">
                        {i18n.t('rounds.lockIncompleteWarning')}
                </Alert>
@@ -72,6 +72,7 @@ LockDialog.propTypes = {
        }),
        show: PropTypes.bool,
        tournament: PropTypes.shape({
+               type: PropTypes.string,
        }),
 };