Fix reload interval

This commit is contained in:
Thor77 2022-07-02 12:59:22 +02:00
parent 51e042c4d7
commit 40ffe3ed62
1 changed files with 2 additions and 5 deletions

View File

@ -53,11 +53,8 @@ function FilterDropdown(props) {
function FullscreenPageHeader(props) { function FullscreenPageHeader(props) {
return (<Navbar color='light' className='mb-4 border-bottom py-0'> return (<Navbar color='light' className='mb-4 border-bottom py-0'>
<NavItem><FilterDropdown {...props.filter}/></NavItem> <FilterDropdown {...props.filter}/>
<NavbarBrand>{props.title}</NavbarBrand> <NavbarBrand>{props.title}</NavbarBrand>
<NavItem className='text-secondary'>
Turnier-Code: <b className='text-primary text-monospace'>{props.code}</b>
</NavItem>
</Navbar>); </Navbar>);
} }
@ -99,7 +96,7 @@ class Main extends React.Component {
const tournamentId = this.props.query.code; const tournamentId = this.props.query.code;
getTournamentMeta(tournamentId, this.onTournamentRequestSuccess, this.onTournamentRequestError); getTournamentMeta(tournamentId, this.onTournamentRequestSuccess, this.onTournamentRequestError);
this.updateMatches(); this.updateMatches();
const intervalId = setInterval(this.updateMatches, 3000); const intervalId = setInterval(this.updateMatches, 10000);
this.setState({intervalId: intervalId}); this.setState({intervalId: intervalId});
} }