Skip to content

Commit

Permalink
maxCollaborators - Limit
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-ramos committed Sep 1, 2024
1 parent eb26760 commit 48e0eae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/dashboard/Settings/Collaborators.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,10 @@ export default class Collaborators extends React.Component {

render() {
const maxCollaborators = this.context.settings.fields.fields.maxCollaborators;
const limitReached = this.context.settings.fields.fields.limitReached ?? 0
const collaborators = this.context.settings.fields.fields.collaborators
// const limitReached = (this.context.settings.fields.fields.limitReached >= this.context.settings.fields.fields.collaborators) ? this.context.settings.fields.fields.limitReached : 0
// const collaborators = this.context.settings.fields.fields.collaborators;
// const limitReached = this.context.settings.fields.fields.limitReached ?? 0
// const collaborators = this.context.settings.fields.fields.collaborators
const limitReached = (this.context.settings.fields.fields.limitReached >= this.context.settings.fields.fields.collaborators.length) ? this.context.settings.fields.fields.limitReached : 0
const collaborators = this.context.settings.fields.fields.collaborators;

// (limitReached >= collaborators) : coll
console.log('render here')
Expand All @@ -476,7 +476,7 @@ export default class Collaborators extends React.Component {
this.props.legend
&& (
`${this.props.legend} ${maxCollaborators !== true && maxCollaborators !== null && maxCollaborators > 0
? `${collaborators} / ${maxCollaborators}`
? `${limitReached} / ${maxCollaborators}`
: ''
}`
)
Expand Down

0 comments on commit 48e0eae

Please sign in to comment.