Skip to content

Commit

Permalink
fix: null referance exception in mirror length
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Aug 22, 2022
1 parent 3220ec0 commit a188e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datalayer/persistance.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const _addMirror = async (storeId, url) => {
(mirror) => mirror.launcher_id === storeId && mirror.urls.includes(url),
);

if (mirror?.length === 0) {
if (mirror) {
return true;
}

Expand Down

0 comments on commit a188e7b

Please sign in to comment.