diff --git a/js/components/ascribe_modal/modal_wrapper.js b/js/components/ascribe_modal/modal_wrapper.js index 3f3b4af4..fd77e5ae 100644 --- a/js/components/ascribe_modal/modal_wrapper.js +++ b/js/components/ascribe_modal/modal_wrapper.js @@ -46,7 +46,13 @@ let ModalWrapper = React.createClass({ renderChildren() { return ReactAddons.Children.map(this.props.children, (child) => { return ReactAddons.addons.cloneWithProps(child, { - handleSuccess: this.handleSuccess + handleSuccess: (response) => { + if (typeof child.props.handleSuccess === 'function') { + child.props.handleSuccess(response); + } + + this.handleSuccess(response); + } }); }); },