Skip to content

Commit

Permalink
fix misnamed variable
Browse files Browse the repository at this point in the history
Signed-off-by: David <daveclaveau@gmail.com>
  • Loading branch information
davidclaveau committed Aug 14, 2024
1 parent 9264684 commit 8c6b04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arSam/handlers/export-variance/invokable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "%");
}
Expand Down

0 comments on commit 8c6b04a

Please sign in to comment.