Skip to content

Commit

Permalink
fix(javascript): waitForApiKey helper (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jun 6, 2023
1 parent f65d1b4 commit 31f1050
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/javascript/clients/client/api/helpers.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ waitForApiKey(
value.length !== resValue.length ||
value.some((v, index) => v !== resValue[index])
) {
return false;
return true;
}
} else if (value !== resValue) {
return false;
return true;
}
}
return true;
return false;
},
});
}
Expand Down Expand Up @@ -228,4 +228,4 @@ browseSynonyms(
validate: (response) => response.nbHits < params.hitsPerPage,
...browseSynonymsOptions,
});
},
},

0 comments on commit 31f1050

Please sign in to comment.