Skip to content

Commit

Permalink
added a console log
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakaabi committed Oct 10, 2024
1 parent 022a2dd commit 45ff245
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/topics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ Topics.getTopicsByTids = async function (tids, options) {
if (topic) {
topic.thumbs = result.thumbs[i];
topic.category = result.categoriesMap[topic.cid];

if (topic.isAnonymous === 'true') {
topic.user = {
username: 'Anonymous',
displayname: 'Anonymous',
isAnonymous: true,
};
console.log("Type of topic.isAnonymous:", typeof topic.isAnonymous);

Check failure on line 139 in src/topics/index.js

View workflow job for this annotation

GitHub Actions / test

Strings must use singlequote
console.log('After condition:', topic.user.displayname);
} else {
topic.user = topic.uid ? result.usersMap[topic.uid] : { ...result.usersMap[topic.uid] };
Expand Down

0 comments on commit 45ff245

Please sign in to comment.