Skip to content

Commit

Permalink
Revert fix to #2011 as it tries to use backend environment in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
iamleeg committed Oct 1, 2021
1 parent 4120c46 commit da6825e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions verification/curator-service/ui/src/components/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ import { selectIsLoading } from '../../redux/app/selectors';
import { getUserProfile, logout } from '../../redux/auth/thunk';
import { selectUser } from '../../redux/auth/selectors';
import { User } from '../../api/models/User';
import validateEnv from '../util/validate-env';

export const theme = createMuiTheme({
palette: {
Expand Down Expand Up @@ -397,8 +396,6 @@ export default function App(): JSX.Element {

const savedSearchQuery = localStorage.getItem('searchQuery');

const env = validateEnv();

const menuList = user
? [
{
Expand Down Expand Up @@ -579,9 +576,7 @@ export default function App(): JSX.Element {
<a
className={classes.mapLink}
data-testid="mapLink"
href={env.SERVICE_ENV === "dev"
? "http://dev-map.covid-19.global.health/"
: "https://map.covid-19.global.health/"}
href="https://map.covid-19.global.health/"
rel="noopener noreferrer"
target="_blank"
>
Expand Down

0 comments on commit da6825e

Please sign in to comment.