Skip to content

Commit

Permalink
#768 Fixes genescount glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
lawal-olaotan committed Aug 11, 2023
1 parent d264b2d commit aea3b0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client-base/src/main/webapp/html/javascript/user-access.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ class UserAccessManager{
}

// Sets geneslist search limit based on current user plan.
// 20 for guest, 100 for registered and unlimited for pro users.
// 20 for guest, 100 for free and unlimited for pro users.
#setGeneSearchLimit()
{
if( this.#current === 'registered' )
if( this.#current === 'free' )
{
this.#defaultGeneLimit = 100;

// sets current genelist limit
$('.genesCount').html(`0/${this.#defaultGeneLimit}`)

}else if(this.#current === 'pro'){
this.#isGeneLimitEnforced = false;
$('.genesCount').hide();
Expand Down

0 comments on commit aea3b0b

Please sign in to comment.