Skip to content

Commit b2658ae

Browse files
committed
remove unused refresh interval
1 parent b4d6048 commit b2658ae

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/features/carbonAds/components/CarbonAd.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import './CarbonAd.css'
22
import { addHttpsProtocol } from 'src/utils/UrlUtils'
33
import { useGetAd } from '../api/getAd'
4-
import { useRemoteConfigStore } from 'src/features/remoteConfig'
4+
5+
56
export const CarbonAd = () => {
6-
const { refresh_rate } = useRemoteConfigStore()
7-
const { data: ad } = useGetAd({
8-
config: {
9-
refetchInterval: refresh_rate,
10-
},
11-
})
7+
const { data: ad } = useGetAd()
128

139
if (!ad || !ad.statlink) {
1410
return null

0 commit comments

Comments
 (0)