Skip to content

Commit

Permalink
Update index.js (#1003)
Browse files Browse the repository at this point in the history
Wrong if condition, it should be or instad of and. Otherwise the second part of the if conditions makes no sense.
  • Loading branch information
cimchd authored Oct 6, 2020
1 parent 5ba214d commit ce45265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ export default class VueI18n {
fetchChoice (message: string, choice: number): ?string {
/* istanbul ignore if */
if (!message && !isString(message)) { return null }
if (!message || !isString(message)) { return null }
const choices: Array<string> = message.split('|')
choice = this.getChoiceIndex(choice, choices.length)
Expand Down

0 comments on commit ce45265

Please sign in to comment.