diff --git a/lib/plugins/budget/verify.js b/lib/plugins/budget/verify.js index 3ce13fc2c..7d971923d 100644 --- a/lib/plugins/budget/verify.js +++ b/lib/plugins/budget/verify.js @@ -131,7 +131,10 @@ module.exports = { log.error(`Could not find the user timing ${metric}`); continue; } - } else if (metricType === 'extras' && tool === 'browsertime') { + } else if ( + metricType === 'scriptingmetrics' && + tool === 'browsertime' + ) { const budgetValue = budgetForThisURL[metricType][metric]; const value = get( message.data, @@ -154,7 +157,7 @@ module.exports = { } continue; } else { - log.error(`Could not find the extra metric ${metric}`); + log.error(`Could not find the scripting metric ${metric}`); continue; } }