fix: resolve typescript and build errors across admin and guest apps
This commit is contained in:
@@ -15,6 +15,8 @@ const baseEvent = (overrides: Partial<TenantEvent>): TenantEvent => ({
|
||||
photo_count: overrides.photo_count ?? 0,
|
||||
likes_sum: overrides.likes_sum ?? 0,
|
||||
engagement_mode: overrides.engagement_mode ?? 'tasks',
|
||||
event_type_id: overrides.event_type_id ?? null,
|
||||
event_type: overrides.event_type ?? null,
|
||||
});
|
||||
|
||||
describe('resolveEventStatusKey', () => {
|
||||
|
||||
@@ -15,6 +15,8 @@ const baseEvent = (overrides: Partial<TenantEvent>): TenantEvent => ({
|
||||
photo_count: overrides.photo_count ?? 0,
|
||||
likes_sum: overrides.likes_sum ?? 0,
|
||||
engagement_mode: overrides.engagement_mode ?? 'tasks',
|
||||
event_type_id: overrides.event_type_id ?? null,
|
||||
event_type: overrides.event_type ?? null,
|
||||
});
|
||||
|
||||
describe('buildEventListStats', () => {
|
||||
|
||||
@@ -34,7 +34,7 @@ export function resolveOnboardingRedirect({
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!hasEvents && (!hasActivePackage || (remainingEvents !== null && remainingEvents <= 0))) {
|
||||
if (!hasEvents && (!hasActivePackage || (remainingEvents !== undefined && remainingEvents !== null && remainingEvents <= 0))) {
|
||||
return ADMIN_BILLING_PATH;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { TenantPackageSummary } from '../../api';
|
||||
|
||||
type Translate = (key: string, options?: Record<string, unknown> | string) => string;
|
||||
type Translate = any;
|
||||
|
||||
type LimitUsageOverrides = {
|
||||
remainingEvents?: number | null;
|
||||
|
||||
Reference in New Issue
Block a user