Skip to content

Commit f3c6053

Browse files
authored
Merge pull request #192 from simranb86/issue_4491
changes for issue #4491
2 parents a9113ac + bd2aec7 commit f3c6053

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/services/lookup.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,12 @@ class LookupService {
112112
* @return {Promise} Resolves to the review types.
113113
*/
114114
async getReviewTypes() {
115-
const res = await this.private.apiV5.get('/reviewTypes');
116-
const jsonResult = await res.json();
117-
return jsonResult;
115+
if (typeof this.private.tokenV3 !== 'undefined') {
116+
const res = await this.private.apiV5.get('/reviewTypes');
117+
const jsonResult = await res.json();
118+
return jsonResult;
119+
}
120+
return [];
118121
}
119122
}
120123

0 commit comments

Comments
 (0)