Update guest v2 home and tasks experience
This commit is contained in:
@@ -2,7 +2,13 @@ import React from 'react';
|
||||
import { fetchEventStats } from '../services/statsApi';
|
||||
import type { EventStats } from '../services/eventApi';
|
||||
|
||||
const defaultStats: EventStats = { onlineGuests: 0, tasksSolved: 0, latestPhotoAt: null };
|
||||
const defaultStats: EventStats = {
|
||||
onlineGuests: 0,
|
||||
tasksSolved: 0,
|
||||
guestCount: 0,
|
||||
likesCount: 0,
|
||||
latestPhotoAt: null,
|
||||
};
|
||||
|
||||
export function usePollStats(eventToken: string | null, intervalMs = 10000) {
|
||||
const [stats, setStats] = React.useState<EventStats>(defaultStats);
|
||||
|
||||
Reference in New Issue
Block a user