mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
Chore/v2/onboarding flow cleanup (#5065)
This commit is contained in:
@@ -173,19 +173,8 @@ export function ServerExperienceProvider({ children }: { children: ReactNode })
|
||||
}
|
||||
|
||||
const shouldUseAdminData = (config.enableLogin ?? true) && config.isAdmin;
|
||||
const shouldUseEstimate = config.enableLogin === false;
|
||||
|
||||
if (!shouldUseAdminData && !shouldUseEstimate) {
|
||||
setUserCountState((prev) => ({
|
||||
...prev,
|
||||
totalUsers: null,
|
||||
weeklyActiveUsers: null,
|
||||
loading: false,
|
||||
source: 'unknown',
|
||||
error: null,
|
||||
}));
|
||||
return;
|
||||
}
|
||||
// Use WAU estimate for no-login scenarios OR for login non-admin users
|
||||
const shouldUseEstimate = config.enableLogin === false || !config.isAdmin;
|
||||
|
||||
setUserCountState((prev) => ({
|
||||
...prev,
|
||||
|
||||
Reference in New Issue
Block a user