From 9287f0244086e9ff488035745a77288c4a1c729d Mon Sep 17 00:00:00 2001 From: Ramiro Vazquez Date: Wed, 6 May 2020 11:32:46 -0300 Subject: [PATCH] fix wrong cache ttl data reference --- src/hooks/useHomeData.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useHomeData.tsx b/src/hooks/useHomeData.tsx index 3c1f6be..7659d96 100644 --- a/src/hooks/useHomeData.tsx +++ b/src/hooks/useHomeData.tsx @@ -5,7 +5,7 @@ import store from '../utils/cache' import { addMinutes, isBefore } from 'date-fns' import { mergeEventPages } from '../utils' -const REACT_APP_HOME_DATA_TTL = Number(process.env.REACT_APP_LAST_CACHE_UPDATE) || 5 +const REACT_APP_HOME_DATA_TTL = Number(process.env.REACT_APP_HOME_DATA_TTL) || 5 const getHomeVariables = data => { const governance = data.governanceInfo