Set current_quantity to zero when there is no package.
This commit is contained in:
@@ -38,7 +38,7 @@ readonly class FoodsiService
|
|||||||
return $data['data'][0]['attributes'];
|
return $data['data'][0]['attributes'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [];
|
return ['current_quantity' => 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
private function login(): void
|
private function login(): void
|
||||||
|
|||||||
Reference in New Issue
Block a user