Skip to content

Commit

Permalink
Fix another typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharcoux committed May 22, 2024
1 parent c5bdc68 commit 0534eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const renderRadarChart = (columnsData, data, opt = {}) => {
if (!Array.isArray(data)) {
throw new Error('data must be an array');
}
if (data.some(data => Object.keys(data).map(key => key !== 'class' && typeof data[key] !== 'number'))) {
if (data.some(data => Object.keys(data).some(key => key !== 'class' && typeof data[key] !== 'number'))) {
throw new Error('data must contain set of numbers');
}
const options = /** @type {ExtendedOptions<T>} */({ ...defaults, ...opt, chartSize: 0 });
Expand Down

0 comments on commit 0534eab

Please sign in to comment.