mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-09-08 18:45:26 -05:00
Fix a mistake that caused an empty "new weapon" tweet
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user