fix(torob): correctly map packageSize 0 and OUT_OF_STOCK to outofstock in Torob API
This commit is contained in:
1 parent
e4932a94e3
commit
4d5159a169
1 file changed
+2
@@ -186,6 +186,8 @@ export class TorobController {
|
||||
|
||||
const isInStock =
|
||||
product.stockStatus !== 'DISCONTINUED' &&
|
||||
product.stockStatus !== 'OUT_OF_STOCK' &&
|
||||
(product.packageSize === null || Number(product.packageSize) > 0) &&
|
||||
String(product.stockStatus || '')
|
||||
.toLowerCase()
|
||||
.includes('in');
|
||||
|
||||
Reference in new issue
Block a user