0
Fork 0
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:
Xiao Yijun 2023-12-25 18:02:40 +08:00 committed by GitHub
parent 12e6d288dd
commit 73464229db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,