Skip to content

Commit

Permalink
fix: Minor code issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Jan 8, 2024
1 parent f4310a2 commit db6bba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/UsersActions/ActionDiff.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class ActionDiff extends PureComponent {
}
// Format time like 0:42 -> 1:35
if (key === 'time') {
return value ? formatSeconds(value) : ''
return formatSeconds(value)
}
if (key === 'source' || key === 'url') {
return <ExternalLinkNewTab href={value}>{value}</ExternalLinkNewTab>
Expand Down
2 changes: 1 addition & 1 deletion app/state/video_debate/comments/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const CommentsReducer = handleActions(
[scoreDiff]: (state, { payload: { diff, comment } }) => {
const commentPath = getCommentPath(comment)
const commentIdx = getCommentIdx(state, commentPath, comment.id)
if (!commentIdx === -1) {
if (commentIdx === -1) {
logWarn(`New vote registered on unknown comment: ${comment.id}`)
return state
}
Expand Down

0 comments on commit db6bba6

Please sign in to comment.