From 2002af6c7deee6d85d8ed0670dc4f38d9deffda3 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 30 Nov 2015 14:14:30 +0000 Subject: [PATCH] Assign a default onFinished call to prevent TypeErrors being thrown. --- src/components/views/rooms/MemberInfo.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index 02dea43aa7..0c9e50f718 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -34,6 +34,12 @@ var sdk = require('../../../index'); module.exports = React.createClass({ displayName: 'MemberInfo', + getDefaultProps: function() { + return { + onFinished: function() {} + }; + }, + componentDidMount: function() { // work out the current state if (this.props.member) {