Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 0eabc68

Browse files
committed
fix: taking space into consideration
ref issue #46
1 parent e6530ec commit 0eabc68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/teams.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import config from "../../config";
1515
export const getMyTeams = (name, page = 1, perPage) => {
1616
let query = `page=${page}&perPage=${perPage}`;
1717
if (name) {
18-
query += `&name=*${name}*`; // wrap with asterisks to search by substrings
18+
// wrap with quotes to fix issue https://github.com/topcoder-platform/taas-app/issues/46
19+
query += `&name="${name}"`;
1920
}
2021

2122
return axios.get(`${config.API.V5}/taas-teams?${query}`);

0 commit comments

Comments
 (0)