Pool fixed (zero max values) (#7521)
This commit is contained in:
parent
8b8a0b9329
commit
b8e9f83b77
@ -65,7 +65,7 @@ function Pool ({ className = '', members, ownAccounts, params, poolId }: Props):
|
||||
</td>
|
||||
<td className='button'>
|
||||
<Join
|
||||
isDisabled={!info.bonded.state.isOpen || !info.bonded.memberCounter.ltn(params.maxMembersPerPool)}
|
||||
isDisabled={!info.bonded.state.isOpen || (!!params.maxMembersPerPool && !info.bonded.memberCounter.ltn(params.maxMembersPerPool))}
|
||||
ownAccounts={ownAccounts}
|
||||
params={params}
|
||||
poolId={poolId}
|
||||
|
||||
@ -21,18 +21,23 @@ function Summary ({ className, params: { maxMembers, maxMembersPerPool, maxPools
|
||||
|
||||
return (
|
||||
<SummaryBox className={className}>
|
||||
{maxMembers && (
|
||||
<CardSummary label={t<string>('pools')}>
|
||||
{isNumber(poolCount) && <>{formatNumber(poolCount)} / </>}{formatNumber(maxPools)}
|
||||
</CardSummary>
|
||||
)}
|
||||
<CardSummary label={t<string>('pools')}>
|
||||
{isNumber(poolCount) && (
|
||||
<>
|
||||
{formatNumber(poolCount)}
|
||||
{maxPools > 0 && (
|
||||
<> / {formatNumber(maxPools)}</>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</CardSummary>
|
||||
<section>
|
||||
{maxMembers && (
|
||||
{maxMembers > 0 && (
|
||||
<CardSummary label={t<string>('max. members')}>
|
||||
{formatNumber(maxMembers)}
|
||||
</CardSummary>
|
||||
)}
|
||||
{maxMembersPerPool && (
|
||||
{maxMembersPerPool > 0 && (
|
||||
<CardSummary label={t<string>('max. members / pool')}>
|
||||
{formatNumber(maxMembersPerPool)}
|
||||
</CardSummary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user