Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Minor code issues
Browse files Browse the repository at this point in the history
Betree committed Jan 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f4310a2 commit db6bba6
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
@@ -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>
2 changes: 1 addition & 1 deletion app/state/video_debate/comments/reducer.js
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit db6bba6

Please sign in to comment.