We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ef362 commit 289bf06Copy full SHA for 289bf06
1 file changed
src/services/Challenge/TopTags.js
@@ -12,7 +12,9 @@ export const fetchTopTags = function (challengeId) {
12
.execute()
13
.then((response) => {
14
// The API returns an object with numeric keys, convert to array
15
- return response?.result ? Object.values(response.result) : [];
+ return response?.result
16
+ ? Object.values(response.result).filter((tag) => tag.name && tag.name.trim() !== "")
17
+ : [];
18
})
19
.catch((error) => {
20
console.log(error.response || error);
0 commit comments