diff --git a/legacy_packages/react/src/wallet/ConnectWallet/screens/Buy/swap/SwapFees.tsx b/legacy_packages/react/src/wallet/ConnectWallet/screens/Buy/swap/SwapFees.tsx index e3bc1888b59..41ce883981c 100644 --- a/legacy_packages/react/src/wallet/ConnectWallet/screens/Buy/swap/SwapFees.tsx +++ b/legacy_packages/react/src/wallet/ConnectWallet/screens/Buy/swap/SwapFees.tsx @@ -18,7 +18,8 @@ export function SwapFees(props: { alignItems: props.align === "right" ? "flex-end" : "flex-start", }} > - {props.quote.processingFees.map((fee, i) => { + {/* TODO: why are the explicit annotations required here? */} + {props.quote.processingFees.map((fee: BuyWithCryptoQuote['processingFees'][number], i: number) => { const feeAmount = formatNumber(Number(fee.amount), 4); return ( diff --git a/legacy_packages/react/src/wallet/ConnectWallet/screens/SwapTransactionsScreen.tsx b/legacy_packages/react/src/wallet/ConnectWallet/screens/SwapTransactionsScreen.tsx index e16d915505f..4de89ff6a65 100644 --- a/legacy_packages/react/src/wallet/ConnectWallet/screens/SwapTransactionsScreen.tsx +++ b/legacy_packages/react/src/wallet/ConnectWallet/screens/SwapTransactionsScreen.tsx @@ -55,7 +55,8 @@ export function SwapTransactionsScreen(props: { onBack: () => void }) { const txInfosToShow: TxStatusInfo[] = []; const txHashSet = new Set(); - _historyQuery.data?.page.forEach((tx) => { + // TODO: why is the annotation required here? + _historyQuery.data?.page.forEach((tx: BuyWithCryptoStatus) => { if (tx.status !== "NOT_FOUND" && tx.status !== "NONE") { if (tx.source?.transactionHash) { txHashSet.add(tx.source?.transactionHash); @@ -84,7 +85,8 @@ export function SwapTransactionsScreen(props: { onBack: () => void }) { }); // Add data from endpoint - _historyQuery.data?.page.forEach((tx) => { + // TODO: why is the annotation required here? + _historyQuery.data?.page.forEach((tx: BuyWithCryptoStatus) => { if (tx.status !== "NOT_FOUND" && tx.status !== "NONE") { if (tx.source?.transactionHash) { txInfosToShow.push({