Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
airenzp authored and xzhou82 committed Dec 3, 2024
1 parent 49ce136 commit d7051b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion client/mass/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export class MassAbout {
if (opts.selectCohort?.description || opts.selectCohort?.descriptionByUser) {
//temporary logic to get the profile description until the login is implemented
const [logged, site, user] = getProfileLogin()
const description = user ? opts.selectCohort.descriptionByUser?.[user] : opts.selectCohort.description
//If there is a user and a descriptionByUser, use the user description otherwise use the default description
const description =
user && opts.selectCohort.descriptionByUser
? opts.selectCohort.descriptionByUser[user]
: opts.selectCohort.description
if (description)
this.dom.cohortDescription = this.subheader
.append('div')
Expand Down
2 changes: 1 addition & 1 deletion client/mass/test/about.unit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ tape('Default About tab class', test => {
test.end()
})

tape.only('.initCohort()', test => {
tape('.initCohort()', test => {
test.timeoutAfter(100)

const holder = getHolder() as any
Expand Down

0 comments on commit d7051b8

Please sign in to comment.