fix negative remaining epoch time on focus
This commit is contained in:
@@ -50,7 +50,7 @@ const EpochProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
const QueryClient = useQueryClient();
|
||||
|
||||
const { data, isError, isLoading } = useQuery({
|
||||
refetchOnWindowFocus: false,
|
||||
refetchOnWindowFocus: true,
|
||||
queryKey: ["currentEpoch"],
|
||||
queryFn: fetchCurrentEpoch,
|
||||
refetchInterval: ({ state }) => {
|
||||
|
||||
Reference in New Issue
Block a user