Small logic change to improve SAUCE handling

This commit is contained in:
Nathan Byrd 2023-08-25 14:38:32 -05:00
parent 7d46607ddc
commit bf0bf83053
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ function getFontNameFromSAUCE(sauce) {
function getWidthFromSAUCE(sauce) {
if (sauce.Character) {
let sauceWidth = _.toNumber(sauce.Character.characterWidth);
if(!(_.isNaN(sauceWidth) && sauceWidth > 0)) {
if(!(_.isNaN(sauceWidth)) && sauceWidth > 0) {
return sauceWidth;
}
}