fix: potential NaN as delay time when scheduling
This commit is contained in:
parent
7768a202b2
commit
b654eb3643
@ -97,6 +97,11 @@ const getAdjustedShortTermETA = async (client: Client, aid: number) => {
|
||||
minETAHours = adjustedETA;
|
||||
}
|
||||
}
|
||||
|
||||
if (isNaN(minETAHours)) {
|
||||
minETAHours = Infinity;
|
||||
}
|
||||
|
||||
return minETAHours;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user