diff --git a/index.js b/index.js
index 9d142bf0e0c0b33d02b46aca87fefe86899a7941..c309164cd5cf5324b18677fec4c56f5b3d4fdb0a 100644
--- a/index.js
+++ b/index.js
@@ -315,7 +315,7 @@ async function checkConsentForLoadCurve(
       return false
     } else if (
       (err.statusCode === 404 ||
-      err.code === 404) && err.error === 'no_data_found') {
+      err.code === 404) && err.error === "no_data_found") {
       log('info', 'Handling half-hour error on connection')
       return false
     } else {