Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Dec 20, 2024
1 parent aa9f4d1 commit a6e026d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/web/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ function AppContent() {
const { LoggedInUser } = useContext(CurrentUserContext);
const { participant } = useContext(ParticipantContext);
const isLocalDev = process.env.NODE_ENV === 'development';
const location = useLocation();

if (LoggedInUser?.user?.participants!.length === 0) {
return <ErrorView message='You do not have access to any participants.' />;
Expand Down
2 changes: 0 additions & 2 deletions src/web/contexts/CurrentUserProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ function CurrentUserProvider({ children }: Readonly<{ children: ReactNode }>) {
const { keycloak } = useKeycloak();
const [isLoading, setIsLoading] = useState<boolean>(true);
const [LoggedInUser, SetLoggedInUser] = useState<UserAccount | null>(null);
const location = useLocation();
const navigate = useNavigate();
const throwError = useAsyncThrowError();

const loadUser = useCallback(async () => {
Expand Down

0 comments on commit a6e026d

Please sign in to comment.