chore: fetch to get in redux thunks files name
This commit is contained in:
@@ -9,7 +9,7 @@ import { useAdminAuth } from "./hooks/useAdminAuth";
|
||||
import handleAdminLogin from "./handlers/handleAdminLogin";
|
||||
import { useDispatch } from "react-redux";
|
||||
import { AppDispatch } from "../../../redux/store";
|
||||
import { fetchSystemSettingsThunk } from "../../../redux/thunks/fetchSystemSettingsThunk";
|
||||
import { getSystemSettingsThunk } from "../../../redux/thunks/getSystemSettingsThunk";
|
||||
import handleGeneralSubmit from "./handlers/handleGeneralSubmit";
|
||||
|
||||
const GeneralSettings: React.FC = () => {
|
||||
@@ -52,7 +52,7 @@ const GeneralSettings: React.FC = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!systemSettings.deviceName) {
|
||||
dispatch(fetchSystemSettingsThunk());
|
||||
dispatch(getSystemSettingsThunk());
|
||||
}
|
||||
}, []);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user