Unverified Commit 6d14ea5c authored by Lyza Gardner's avatar Lyza Gardner Committed by GitHub

Merge pull request #1821 from hypothesis/fix-reply-callback

Fix error in angular callback by providing `event` object
parents cb50baad 5bd640fb
......@@ -76,12 +76,12 @@ function AnnotationActionBar({
.catch(err => flash.error(err.message, 'Flagging annotation failed'));
};
const onReplyClick = () => {
const onReplyClick = event => {
if (!isLoggedIn) {
openSidebarPanel(uiConstants.PANEL_LOGIN_PROMPT);
return;
}
onReply();
onReply(event);
};
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment