Skip to content

Commit

Permalink
Prevent error in console
Browse files Browse the repository at this point in the history
  • Loading branch information
hjonin committed May 9, 2024
1 parent 3b0b661 commit e230469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/validation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function parseAndValidateCodemeta(showPopup) {
}
catch (e) {
setError(`Could not read codemeta document because it is not valid JSON (${e}). Check for missing or extra quote, colon, or bracket characters.`);
return;
return {};
}

setError("");
Expand Down

0 comments on commit e230469

Please sign in to comment.