Skip to content

Commit

Permalink
fix: onInterpretationClick is back
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Jun 23, 2023
1 parent 8b56cb0 commit 1783a20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ export const InterpretationList = ({
key={interpretation.id}
interpretation={interpretation}
currentUser={currentUser}
onClick={
!!onInterpretationClick &&
onInterpretationClick
}
onClick={onInterpretationClick}
onReplyIconClick={onReplyIconClick}
onDeleted={refresh}
onUpdated={refresh}
Expand Down Expand Up @@ -119,8 +116,8 @@ InterpretationList.propTypes = {
currentUser: PropTypes.object.isRequired,
interpretations: PropTypes.array.isRequired,
refresh: PropTypes.func.isRequired,
onInterpretationClick: PropTypes.func.isRequired,
onReplyIconClick: PropTypes.func.isRequired,
appUrl: PropTypes.string,
disabled: PropTypes.bool,
onInterpretationClick: PropTypes.func,
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const Interpretation = ({
<MessageIconButton
tooltipContent={i18n.t('See interpretation')}
iconComponent={IconView16}
onClick={() => onReplyIconClick(interpretation.id)}
onClick={() => onClick(interpretation.id)}
dataTest="interpretation-view-button"
/>
)}
Expand Down

0 comments on commit 1783a20

Please sign in to comment.