We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4ca4bc commit b163a5fCopy full SHA for b163a5f
1 file changed
src/features/ads/api/getAd.ts
@@ -4,11 +4,7 @@ import { Ad } from '../types'
4
import { axios } from 'src/lib/axios'
5
6
const getAd = async (): Promise<Ad | null> => {
7
-
8
- return axios.get<Ad | null>('/engine/ads/').then((response) => {
9
- const data = response as unknown as Ad
10
- return data
11
- })
+ return axios.get('/engine/ads/')
12
}
13
14
type QueryFnType = typeof getAd
0 commit comments