Skip to content

Commit

Permalink
satisfy eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolderup authored Oct 9, 2023
1 parent 527d519 commit fcd80cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function actorMatchesUsername(actor, username) {
}

export function replaceEmptyText(currentValue, defaultValue) {
if (!currentValue || currentValue?.trim().replace(/\n/g, '') == '') {
if (!currentValue || currentValue?.trim().replace(/\n/g, '') === '') {
return defaultValue;
}
return currentValue;
Expand Down

0 comments on commit fcd80cf

Please sign in to comment.