aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/page
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-06-26 21:46:41 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-06-26 21:46:41 +0200
commit315adeb5e2012b7f7bcfcd1478f9d6dd2cc1092d (patch)
tree17ecdc44866845b679ca69337041856df3cab33c /src/client/react/components/page
parentd95009ed42a3a94c947bccbed8a436cbf6b9306c (diff)
Update code to comply with new styling
Diffstat (limited to 'src/client/react/components/page')
-rw-r--r--src/client/react/components/page/User.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/react/components/page/User.js b/src/client/react/components/page/User.js
index 6f9373f..4b9af64 100644
--- a/src/client/react/components/page/User.js
+++ b/src/client/react/components/page/User.js
@@ -37,7 +37,8 @@ class UserPage extends React.Component {
};
render() {
- const user = userFromMatch(this.props.match);
+ const { match } = this.props;
+ const user = userFromMatch(match);
if (!user) {
// Invalid user, redirect to index.