From: Daniel Karbach
Date: Wed, 19 Oct 2022 13:46:47 +0000 (+0200)
Subject: hide lock warning for open rounds
X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=4685a678544856fc7b2e9ceb6fcba896392184d1;p=alttp.git
hide lock warning for open rounds
---
diff --git a/resources/js/components/rounds/LockDialog.js b/resources/js/components/rounds/LockDialog.js
index 690e85c..6174dbf 100644
--- a/resources/js/components/rounds/LockDialog.js
+++ b/resources/js/components/rounds/LockDialog.js
@@ -25,7 +25,7 @@ const LockDialog = ({
? 'rounds.unlockDescription'
: 'rounds.lockDescription')}
- {!round.locked && !isComplete(tournament, round) ?
+ {!round.locked && tournament.type === 'signup-async' && !isComplete(tournament, round) ?
{i18n.t('rounds.lockIncompleteWarning')}
@@ -72,6 +72,7 @@ LockDialog.propTypes = {
}),
show: PropTypes.bool,
tournament: PropTypes.shape({
+ type: PropTypes.string,
}),
};