Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #58 from UnleashedMySelf/master
Browse files Browse the repository at this point in the history
replaced nullish CO with Logical OR
  • Loading branch information
mattkingshott authored Jul 31, 2023
2 parents 5e12f17 + 16b9171 commit 6b93e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iodine.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class Iodine
: this.messages[key].replace('[PARAM]', param);

return [null, undefined, ''].includes(field)
? message.replace('[FIELD]', this.default_field_name ?? 'Value')
? message.replace('[FIELD]', this.default_field_name || 'Value')
: message.replace('[FIELD]', field);
}

Expand Down

0 comments on commit 6b93e81

Please sign in to comment.