Skip to content

Commit b5868c3

Browse files
jiachen247martin-henz
authored andcommitted
Fix USE_BACKEND (#516)
* Bump @types/node from 9.6.28 to 11.13.0 (#513) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 9.6.28 to 11.13.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <support@dependabot.com> * fix use backend
1 parent 53decec commit b5868c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/constants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ export const IVLE_KEY = process.env.REACT_APP_IVLE_KEY;
66
export const VERSION = process.env.REACT_APP_VERSION;
77
export const BACKEND_URL = process.env.REACT_APP_BACKEND_URL;
88
export const USE_BACKEND =
9-
process.env.REACT_APP_USE_BACKEND !== '' &&
10-
process.env.REACT_APP_USE_BACKEND!.toUpperCase() === 'TRUE';
9+
process.env.REACT_APP_USE_BACKEND && process.env.REACT_APP_USE_BACKEND.toUpperCase() === 'TRUE';
1110

1211
export enum LINKS {
1312
GITHUB_ISSUES = 'https://github.com/source-academy/cadet-frontend/issues',

0 commit comments

Comments
 (0)