diff --git a/js/src/forum/components/UserPage.js b/js/src/forum/components/UserPage.js index 19a4d4dad..2bc3fd164 100644 --- a/js/src/forum/components/UserPage.js +++ b/js/src/forum/components/UserPage.js @@ -27,14 +27,14 @@ export default class UserPage extends Page { this.user = null; this.bodyClass = 'App--user'; - - this.currUsername = m.route.param('username'); } onNewRoute() { super.onNewRoute(); - this.loadUser(m.route.param('username')); + if (m.route.param('username')) { + this.loadUser(m.route.param('username')); + } } view() {