refactor(ocme): crashing for no reason added ??

This commit is contained in:
2025-04-02 21:25:49 -05:00
parent a1f62a3e51
commit 4f3b5d75a2

View File

@@ -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.",