-
+
diff --git a/react/src/pages/MapProject/MapProject.tsx b/react/src/pages/MapProject/MapProject.tsx
index 7130c1cd..455865c8 100644
--- a/react/src/pages/MapProject/MapProject.tsx
+++ b/react/src/pages/MapProject/MapProject.tsx
@@ -5,12 +5,7 @@ import Map from '@hazmapper/components/Map';
import AssetsPanel from '@hazmapper/components/AssetsPanel';
import ManageMapProjectModal from '@hazmapper/components/ManageMapProjectModal';
import { queryPanelKey, Panel } from '@hazmapper/utils/panels';
-import {
- useAuthenticatedUser,
- useFeatures,
- useProject,
- useTileServers,
-} from '@hazmapper/hooks';
+import { useFeatures, useProject, useTileServers } from '@hazmapper/hooks';
import { useParams } from 'react-router-dom';
import styles from './MapProject.module.css';
import MapProjectNavBar from '@hazmapper/components/MapProjectNavBar';
@@ -94,7 +89,6 @@ const LoadedMapProject: React.FC
= ({
activeProject,
isPublicView,
}) => {
- const { data: userData } = useAuthenticatedUser();
const [selectedAssetTypes, setSelectedAssetTypes] = useState(
Object.keys(assetTypeOptions)
);
@@ -158,7 +152,7 @@ const LoadedMapProject: React.FC = ({
return (
-
+
MapTopControlBar
{loading &&
loading
}
diff --git a/react/src/redux/authSlice.ts b/react/src/redux/authSlice.ts
index 9988eec3..6bd2dc3c 100644
--- a/react/src/redux/authSlice.ts
+++ b/react/src/redux/authSlice.ts
@@ -17,10 +17,8 @@ const authSlice = createSlice({
state,
action: PayloadAction<{ user: AuthenticatedUser; authToken: AuthToken }>
) {
- state = {
- user: action.payload.user,
- authToken: action.payload.authToken,
- };
+ state.user = action.payload.user;
+ state.authToken = action.payload.authToken;
// save to local storage
setAuthenticatedUserFromLocalStorage(state);