mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix(console): correct surpass limitation check for m2m apps (#5154)
This commit is contained in:
parent
12e6d288dd
commit
73464229db
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import useSWR from 'swr';
|
|||
|
||||
import { isCloud } from '@/consts/env';
|
||||
import { TenantsContext } from '@/contexts/TenantsProvider';
|
||||
import { hasReachedQuotaLimit } from '@/utils/quota';
|
||||
import { hasReachedQuotaLimit, hasSurpassedQuotaLimit } from '@/utils/quota';
|
||||
|
||||
import useSubscriptionPlan from './use-subscription-plan';
|
||||
|
||||
|
@ -40,7 +40,7 @@ const useApplicationsUsage = () => {
|
|||
() =>
|
||||
Boolean(
|
||||
currentPlan &&
|
||||
hasReachedQuotaLimit({
|
||||
hasSurpassedQuotaLimit({
|
||||
quotaKey: 'machineToMachineLimit',
|
||||
plan: currentPlan,
|
||||
usage: m2mAppCount,
|
||||
|
|
Loading…
Reference in a new issue