mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 04:15:20 +08:00

This commit is fixing the path which sets a default value to trigger. We were doing `if (!this.model.trigger)` but `this.model.trigger` can have `0` as value, which would trigger this codepath and this codepath was setting the first value of `badgeTriggers` as a default value for trigger.