Skip to content

Commit b163a5f

Browse files
committed
fix ad request
1 parent e4ca4bc commit b163a5f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/features/ads/api/getAd.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import { Ad } from '../types'
44
import { axios } from 'src/lib/axios'
55

66
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-
})
7+
return axios.get('/engine/ads/')
128
}
139

1410
type QueryFnType = typeof getAd

0 commit comments

Comments
 (0)