From 4685a678544856fc7b2e9ceb6fcba896392184d1 Mon Sep 17 00:00:00 2001
From: Daniel Karbach
Date: Wed, 19 Oct 2022 15:46:47 +0200
Subject: [PATCH] hide lock warning for open rounds
---
resources/js/components/rounds/LockDialog.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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,
}),
};
--
2.39.2