const ReportButton = ({ round, user }) => {
const [showDialog, setShowDialog] = useState(false);
+ if (round.locked && !findResult(user, round)) {
+ return null;
+ }
+
return <>
<Button
onClick={() => setShowDialog(true)}
ReportButton.propTypes = {
round: PropTypes.shape({
+ locked: PropTypes.bool,
}),
tournament: PropTypes.shape({
}),