Skip to content

Commit

Permalink
✨ nullish checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico105 committed Jun 7, 2021
1 parent 08dc386 commit 9051bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Giveaway.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class Giveaway extends EventEmitter {
? this.options.exemptMembers || undefined
: serialize(this.options.exemptMembers),
bonusEntries:
typeof this.options.bonusEntries === 'string'
(!this.options.bonusEntries || typeof this.options.bonusEntries === 'string')
? this.options.bonusEntries || undefined
: serialize(this.options.bonusEntries),
reaction: this.options.reaction,
Expand Down

0 comments on commit 9051bc1

Please sign in to comment.