- general fixes across the app

- minor fixes
- code clean up and improvements
This commit is contained in:
2025-12-08 09:03:04 +00:00
parent 4c53c04767
commit 7cda7d5887
11 changed files with 24 additions and 16 deletions

View File

@@ -2,6 +2,7 @@ import { Field, useFormikContext } from "formik";
import { useOSDConfig } from "../hooks/useOSDConfig";
import OSDFieldToggle from "./OSDFieldToggle";
import type { OSDConfigFields } from "../../../types/types";
import { toast } from "sonner";
type OSDFieldsProps = {
isOSDLoading: boolean;
@@ -15,7 +16,9 @@ const OSDFields = ({ isOSDLoading }: OSDFieldsProps) => {
const handleSubmit = async (values: OSDConfigFields) => {
const result = await osdMutation.mutateAsync(values);
console.log(result);
if (result?.id) {
toast.success("OSD Config updated successfully");
}
};
if (isOSDLoading) {