fix: limit banner check

This commit is contained in:
Shivam Mishra
2025-01-23 09:45:24 +05:30
parent 2272f2af83
commit b7946fc65a
2 changed files with 4 additions and 0 deletions
@@ -19,6 +19,8 @@ const openBilling = () => {
};
const showBanner = computed(() => {
if (!documentLimits.value) return false;
const { currentAvailable } = documentLimits.value;
return currentAvailable === 0;
});
@@ -19,6 +19,8 @@ const openBilling = () => {
};
const showBanner = computed(() => {
if (!responseLimits.value) return false;
const { consumed, totalCount } = responseLimits.value;
if (!consumed || !totalCount) return false;