Skip to content

Commit

Permalink
fix: fix console validate after lodash upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 5, 2024
1 parent 2ff1a8e commit 52cd7e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/validate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import at from 'lodash';
import _ from 'lodash';

const lighthouseValidateScore = {
success: (v) => v >= 90,
Expand Down Expand Up @@ -78,7 +78,8 @@ export const validateResults = (results, fields) => {
const validate = {};
for (let fName of fields) {
// get value
const colVal = at(results, fName)[0];
const wrapper = _.at(results, fName);
const colVal = _.first(wrapper);
const colName = fName.replace('result.', '').replace('response.', '');
let msg;

Expand Down

0 comments on commit 52cd7e7

Please sign in to comment.