aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/react/components/presentational/ScheduleErrorDisplay.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/react/components/presentational/ScheduleErrorDisplay.js b/src/client/react/components/presentational/ScheduleErrorDisplay.js
index 59d1f69..5072b4b 100644
--- a/src/client/react/components/presentational/ScheduleErrorDisplay.js
+++ b/src/client/react/components/presentational/ScheduleErrorDisplay.js
@@ -24,12 +24,17 @@ import './ScheduleErrorDisplay.scss';
class ScheduleErrorDisplay extends React.Component {
static propTypes = {
- statusCode: PropTypes.string.isRequired,
+ statusCode: PropTypes.string,
};
+ static defaultProps = {
+ statusCode: null,
+ }
+
render() {
const { statusCode } = this.props;
const errorMessage = (
+ // statusCode might be null!
statusCode === 404
? 'Sorry, er is (nog) geen rooster voor deze week.'
: 'Sorry, er is iets mis gegaan tijdens het laden van deze week.'