Skip to content

Commit

Permalink
Make sure firefox_id is set before reading the length from it
Browse files Browse the repository at this point in the history
Fixes #9
  • Loading branch information
bramus committed Sep 10, 2024
1 parent 88fc0b0 commit 26b54e6
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 @@ -452,7 +452,7 @@ const firstArgument = ({ reply }) => {
let newKeys = [];
const { firefox_id, keywords } = caniuse.data[item];

if (firefox_id.length > 0) {
if (firefox_id && firefox_id.length > 0) {
newKeys.push(firefox_id);
}

Expand Down

0 comments on commit 26b54e6

Please sign in to comment.