From 491a774efe83cc1c7a82e2f1386627015a2c1f4d Mon Sep 17 00:00:00 2001 From: Pauline Date: Thu, 6 May 2021 18:02:28 -0500 Subject: [PATCH] Fix format console error --- src/components/GuppyWrapper/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/GuppyWrapper/index.jsx b/src/components/GuppyWrapper/index.jsx index f37b7093..fd1ed700 100644 --- a/src/components/GuppyWrapper/index.jsx +++ b/src/components/GuppyWrapper/index.jsx @@ -148,7 +148,7 @@ class GuppyWrapper extends React.Component { */ handleDownloadRawData({ sort, format }) { // error handling for misconfigured format types - if (format && !(format in FILE_FORMATS)) { + if (format && !(format.toUpperCase() in FILE_FORMATS)) { // eslint-disable-next-line no-console console.error(`Invalid value ${format} found for arg format!`); }