Skip to content

Commit

Permalink
feat: fix remaining env usages to be function calls
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed Jun 24, 2022
1 parent 95e6be9 commit e694f17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/vtadmin/src/errors/bugsnag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import BugsnagJS from '@bugsnag/js';
import { ErrorHandler } from './errorTypes';
import { env } from '../util/env';

const { REACT_APP_BUGSNAG_API_KEY } = env;
const { REACT_APP_BUGSNAG_API_KEY } = env();

/**
* If using Bugsnag, Bugsnag.start() will automatically capture and report
Expand Down
2 changes: 1 addition & 1 deletion web/vtadmin/src/hooks/useDocumentTitle.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect } from 'react';
import { env } from '../util/env';

const BASE_TITLE = env.REACT_APP_DOCUMENT_TITLE || 'VTAdmin';
const BASE_TITLE = env().REACT_APP_DOCUMENT_TITLE || 'VTAdmin';

// useDocumentTitle is a simple hook to set the document.title of the page.
//
Expand Down

0 comments on commit e694f17

Please sign in to comment.