diff --git a/src/util.js b/src/util.js index 87c15a7..0a41a4d 100644 --- a/src/util.js +++ b/src/util.js @@ -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;