From 36d340bd5a3060bef6c81acfd0a4e6c5d8e26283 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Mon, 16 Dec 2024 16:29:23 +0530 Subject: [PATCH 1/2] Fixed: logger error message when fetching product stores --- src/store/modules/user/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user/actions.ts b/src/store/modules/user/actions.ts index d80c990e..bc2066f8 100644 --- a/src/store/modules/user/actions.ts +++ b/src/store/modules/user/actions.ts @@ -250,7 +250,7 @@ const actions: ActionTree = { productStores = Object.values(productStoresResp) } } catch(err) { - logger.error("Failed to fetch facilities") + logger.error("Failed to fetch product stores") } // Updating current facility with a default first facility when fetching facilities on login From 403717a211c884628629d2ad05a704e87c058495 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Mon, 16 Dec 2024 16:31:45 +0530 Subject: [PATCH 2/2] Improved: error message when fetching associated product stores for facilities --- src/store/modules/user/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user/actions.ts b/src/store/modules/user/actions.ts index bc2066f8..04814240 100644 --- a/src/store/modules/user/actions.ts +++ b/src/store/modules/user/actions.ts @@ -210,7 +210,7 @@ const actions: ActionTree = { facility.productStore = resp.data[0] } } catch(err) { - logger.error("Failed to fetch facilities for product store") + logger.error("Failed to fetch product stores for facility") } }