chore: fetch to get in redux thunks files name

This commit is contained in:
Ismail Ali
2025-06-21 10:15:05 +02:00
parent dd76665848
commit 7740806952
42 changed files with 144 additions and 126 deletions

View File

@@ -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]);
//----------------------------------------------------------------