diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1c946ac5..3cb2ae92 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -3,8 +3,7 @@ name: docker_publish on: push: branches: - - "main" - - "dev" + - "*" tags: - "*" diff --git a/src/app/components/Points/StakerPoints.tsx b/src/app/components/Points/StakerPoints.tsx index 1fe3f49b..25c13834 100644 --- a/src/app/components/Points/StakerPoints.tsx +++ b/src/app/components/Points/StakerPoints.tsx @@ -15,7 +15,7 @@ export const StakerPoints: React.FC = ({ queryKey: ["stakerPoints", publicKeyNoCoord], queryFn: () => getStakersPoints([publicKeyNoCoord]), enabled: !!publicKeyNoCoord, - refetchInterval: 300000, // Refresh every 5 minutes + refetchInterval: 30000, // refresh every 30 seconds refetchOnWindowFocus: false, retry: 1, }); diff --git a/src/app/context/api/DelegationsPointsProvider.tsx b/src/app/context/api/DelegationsPointsProvider.tsx index 816f3493..d80ef9aa 100644 --- a/src/app/context/api/DelegationsPointsProvider.tsx +++ b/src/app/context/api/DelegationsPointsProvider.tsx @@ -79,7 +79,7 @@ export const DelegationsPointsProvider: React.FC< delegationsAPI.length > 0 && isApiNormal && !isGeoBlocked, - refetchInterval: 300000, // Refetch every 5 minutes + refetchInterval: 30000, // Refetch every 30 seconds refetchOnWindowFocus: false, retry: 1, });