chore: fetch to get in redux thunks files name
This commit is contained in:
@@ -8,7 +8,7 @@ import { RootState } from "@/redux/store";
|
||||
import { useSelector, useDispatch } from "react-redux";
|
||||
import { AppDispatch } from "@/redux/store";
|
||||
import decodeToken from "@/utils/decodeToken";
|
||||
import { fetchSystemSettingsThunk } from "@/redux/thunks/fetchSystemSettingsThunk";
|
||||
import { getSystemSettingsThunk } from "@/redux/thunks/getSystemSettingsThunk";
|
||||
|
||||
function Header() {
|
||||
const router = useRouter();
|
||||
@@ -59,7 +59,7 @@ function Header() {
|
||||
|
||||
useEffect(() => {
|
||||
if (!deviceName) {
|
||||
dispatch(fetchSystemSettingsThunk());
|
||||
dispatch(getSystemSettingsThunk());
|
||||
}
|
||||
}, [deviceName, dispatch]);
|
||||
//----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user