Skip to content

Commit

Permalink
fix: add guard check before calling onRepliesClick (#1764)
Browse files Browse the repository at this point in the history
  • Loading branch information
didd authored Oct 19, 2022
1 parent e679cc0 commit 1d967a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/design/src/components/EntryCard/entry-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const EntryBox: React.FC<IEntryBoxProps> = props => {

const handleRepliesClick = () => {
handleContentClick(entryData);
onRepliesClick();
if (typeof onRepliesClick === 'function') onRepliesClick();
};

const handleContentClick = (data?: IEntryData) => {
Expand Down

0 comments on commit 1d967a2

Please sign in to comment.