diff --git a/client/gatsby-config.js b/client/gatsby-config.js index b588b335319..02acf9817ab 100644 --- a/client/gatsby-config.js +++ b/client/gatsby-config.js @@ -10,10 +10,7 @@ const { clientLocale, curriculumLocale, homeLocation, sentryClientDSN } = envData; const curriculumIntroRoot = path.resolve(__dirname, './src/pages'); -const pathPrefix = - clientLocale === 'english' || clientLocale === 'chinese' - ? '' - : '/' + clientLocale; +const pathPrefix = clientLocale === 'english' ? '' : '/' + clientLocale; module.exports = { flags: { diff --git a/client/src/__mocks__/gatsby.ts b/client/src/__mocks__/gatsby.ts index 13d623892ed..5881cd6ffa6 100644 --- a/client/src/__mocks__/gatsby.ts +++ b/client/src/__mocks__/gatsby.ts @@ -19,10 +19,7 @@ module.exports = { }) ), withPrefix: jest.fn().mockImplementation((path: string) => { - const pathPrefix = - clientLocale === 'english' || clientLocale === 'chinese' - ? '' - : '/' + clientLocale; + const pathPrefix = clientLocale === 'english' ? '' : '/' + clientLocale; return pathPrefix + path; }), StaticQuery: jest.fn(),