Skip to content

Commit 31f1050

Browse files
authored
fix(javascript): waitForApiKey helper (#1598)
1 parent f65d1b4 commit 31f1050

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/javascript/clients/client/api/helpers.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ waitForApiKey(
8787
value.length !== resValue.length ||
8888
value.some((v, index) => v !== resValue[index])
8989
) {
90-
return false;
90+
return true;
9191
}
9292
} else if (value !== resValue) {
93-
return false;
93+
return true;
9494
}
9595
}
96-
return true;
96+
return false;
9797
},
9898
});
9999
}
@@ -228,4 +228,4 @@ browseSynonyms(
228228
validate: (response) => response.nbHits < params.hitsPerPage,
229229
...browseSynonymsOptions,
230230
});
231-
},
231+
},

0 commit comments

Comments
 (0)