From 70a17fb8ec165892fe1b3932883bb2413c8e92e9 Mon Sep 17 00:00:00 2001 From: Nagesh Pai Date: Mon, 23 Dec 2024 12:56:56 +0530 Subject: [PATCH] Type assertion --- client/deposits/list/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/deposits/list/index.tsx b/client/deposits/list/index.tsx index 089e0a59c25..68f945d27d7 100644 --- a/client/deposits/list/index.tsx +++ b/client/deposits/list/index.tsx @@ -248,7 +248,10 @@ export const DepositsList = (): JSX.Element => { try { const { exported_deposits: exportedDeposits, - }: { exported_deposits: number } = await apiFetch( { + } = await apiFetch< { + /** The total number of payouts that will be exported in the CSV */ + exported_deposits: number; + } >( { path: getDepositsCSV( { userEmail, locale,