♻️ (results) Introduce tRPC and use it for the results
This commit is contained in:
@ -13,7 +13,7 @@ export const useAnswersCount = ({
|
||||
{ answersCounts: AnswersCount[] },
|
||||
Error
|
||||
>(
|
||||
typebotId ? `/api/typebots/${typebotId}/results/answers/count` : null,
|
||||
typebotId ? `/api/typebots/${typebotId}/analytics/answersCount` : null,
|
||||
fetcher
|
||||
)
|
||||
if (error) onError(error)
|
||||
|
Reference in New Issue
Block a user