refactor(ocme): crashing for no reason added ??
This commit is contained in:
@@ -39,7 +39,7 @@ export const postLabelData = async (data: any) => {
|
||||
);
|
||||
}
|
||||
|
||||
if (label.length === 0) {
|
||||
if (label?.length === 0) {
|
||||
return {
|
||||
success: false,
|
||||
message: "The label you scanned dose not exist in stock.",
|
||||
|
||||
Reference in New Issue
Block a user