From 77f10e88b3cfc553effc017bfdbce9688e7a0e57 Mon Sep 17 00:00:00 2001 From: SorinC6 Date: Wed, 11 Oct 2023 11:10:45 +0300 Subject: [PATCH] fix naming --- .../useCases/StartSwapScreen/ListOrders/OpenOrders.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/ListOrders/OpenOrders.tsx b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/ListOrders/OpenOrders.tsx index 27a0a10e77..71e01ddeec 100644 --- a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/ListOrders/OpenOrders.tsx +++ b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/ListOrders/OpenOrders.tsx @@ -39,7 +39,7 @@ import {Counter} from '../../../common/Counter/Counter' import {PoolIcon} from '../../../common/PoolIcon/PoolIcon' import {useStrings} from '../../../common/strings' import {useCancellationOrderFee} from './helpers' -import {mapOrders, MappedOrder} from './mapOrders' +import {mapOpenOrders, MappedOpenOrder} from './mapOrders' export const OpenOrders = () => { const [bottomSheetState, setBottomSheetState] = React.useState({ @@ -62,7 +62,7 @@ export const OpenOrders = () => { const transactionsInfos = useTransactionInfos(wallet) const tokenInfos = useTokenInfos({wallet, tokenIds}) const normalizedOrders = React.useMemo( - () => mapOrders(orders, tokenInfos, numberLocale, Object.values(transactionsInfos)), + () => mapOpenOrders(orders, tokenInfos, numberLocale, Object.values(transactionsInfos)), [orders, tokenInfos, numberLocale, transactionsInfos], ) @@ -88,7 +88,7 @@ export const OpenOrders = () => { }, [track]), ) - const trackCancellationSubmitted = (order: MappedOrder) => { + const trackCancellationSubmitted = (order: MappedOpenOrder) => { track.swapCancelationSubmitted({ from_amount: Number(order.from.quantity) ?? 0, to_amount: Number(order.to.quantity) ?? 0, @@ -204,7 +204,7 @@ export const OpenOrders = () => { return {txBase64: hexBase64} } - const openBottomSheet = async (order: MappedOrder) => { + const openBottomSheet = async (order: MappedOpenOrder) => { if (order.owner === undefined || order.utxo === undefined) return const { utxo, @@ -734,4 +734,4 @@ const styles = StyleSheet.create({ alignSelf: 'stretch', paddingHorizontal: 16, }, -}) \ No newline at end of file +})