Skip to content

Commit

Permalink
Fix: Continue results loop if result does not have valid URL
Browse files Browse the repository at this point in the history
  • Loading branch information
plibither8 committed Apr 24, 2019
1 parent b3daa3e commit 3bceb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/show-similar-submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getSimilarSubmissions(storyLink, metadata) {
continue;
}

if (!compareUrls(result.url.split('://').pop(), storyLink)) {
if (!result.url || !compareUrls(result.url.split('://').pop(), storyLink)) {
continue;
}

Expand Down

0 comments on commit 3bceb35

Please sign in to comment.