- addressed bugs flagged by BR

This commit is contained in:
2025-11-10 13:44:29 +00:00
parent ddeedd2d72
commit feddaa1eb0
9 changed files with 60 additions and 81 deletions

View File

@@ -31,7 +31,7 @@ const updateCamerasideConfig = async (data: { id: string | number; friendlyName:
method: "POST",
body: JSON.stringify(updateConfigPayload),
});
if (!response.ok) throw new Error("Feature unavailable: Coming soon");
if (!response.ok) throw new Error("Please make sure fields are filled in correctly");
};
export const useFetchCameraConfig = (cameraSide: string) => {

View File

@@ -11,6 +11,7 @@ const getCameraMode = async (options: { camera: string }) => {
};
const updateCameraMode = async (options: { camera: string; mode: string }) => {
console.log(options);
const dayNightPayload = {
id: options.camera,
fields: [