Fix a mistake that caused an empty "new weapon" tweet

This commit is contained in:
Unknown
2017-10-13 20:55:11 -07:00
parent add1768470
commit d389708bfa

View File

@@ -319,7 +319,7 @@ async function maybePostNewWeaponTweet() {
// Do we have a weapon?
let weaponAvailabilities = getNewWeaponAvailabilities(time);
if (!weaponAvailabilities) {
if (!weaponAvailabilities || weaponAvailabilities.length == 0) {
console.info('Twitter: No new weapon for this time');
return;
}