Skip to content
Snippets Groups Projects
Commit 1077dd6a authored by Evelyn Eastmond's avatar Evelyn Eastmond
Browse files

Fixing handleOnCloseAlert handler binding.

parent 72a10771
Branches
Tags
No related merge requests found
......@@ -12,6 +12,8 @@ class Alert extends React.Component {
]);
}
handleOnCloseAlert () {
console.log('prop to close: ');
console.log(this.props.index);
this.props.onCloseAlert(this.props.index);
}
render () {
......@@ -25,7 +27,7 @@ class Alert extends React.Component {
<AlertComponent
iconURL={iconURL}
message={message}
onCloseAlert={onCloseAlert}
onCloseAlert={this.handleOnCloseAlert}
/>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment