Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #65 from AscendNTNU/fix-sponsor-issue
Browse files Browse the repository at this point in the history
Added FLIR
  • Loading branch information
anders-hopland authored Nov 2, 2017
2 parents 7d0d8af + dc93407 commit 6cdf099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/Common/sponsorlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export class SponsorList extends React.Component<SponsorListProps, SponsorListSt
super(props)

this.state = {
year: props.year || 2017,
year: props.year || 2018,
sponsors: [],
}

this.getSponsors(this.state.year)
}

componentWillReceiveProps (nextProps: any) {
let nextYear: number = nextProps.year || 2017
let nextYear: number = nextProps.year || 2018
let year: number = this.props.year || this.state.year

if (nextYear != year) {
Expand Down

0 comments on commit 6cdf099

Please sign in to comment.