- general fixes across the app
- minor fixes - code clean up and improvements
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user