npe guard

This commit is contained in:
Rares Mardare 2022-12-16 19:51:08 +02:00
parent f5be86e1d2
commit fb164d3b01

View file

@ -20,7 +20,7 @@ class FaroHelper {
faro: Faro;
initializeFaro() {
const enabled = process.env['FARO_ENABLED'].toLowerCase();
const enabled = process.env['FARO_ENABLED']?.toLowerCase();
const faroConfig: FaroConfig = {
url: process.env['FARO_URL'],
apiKey: process.env['FARO_API_KEY'],