From 8c6b04afd1b9af7fed82c6db44c182ac01749c49 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 14 Aug 2024 13:01:14 -0700 Subject: [PATCH] fix misnamed variable Signed-off-by: David --- arSam/handlers/export-variance/invokable/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arSam/handlers/export-variance/invokable/index.js b/arSam/handlers/export-variance/invokable/index.js index ec2fe14..849dfcc 100644 --- a/arSam/handlers/export-variance/invokable/index.js +++ b/arSam/handlers/export-variance/invokable/index.js @@ -252,7 +252,7 @@ function formatRecords(records) { for (const field of record.fields) { // if the key matches an item in the array of EXPORT_VARIANCE_CONFIG, push it to the record const flattenedConfig = flattenConfig(EXPORT_VARIANCE_CONFIG); - if (flattenedSchema.includes(field.key)) { + if (flattenedConfig.includes(field.key)) { const percent = (parseFloat(field.percentageChange) * 100).toFixed(2); record[field.key] = String(percent + "%"); }