Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
SorinC6 committed Oct 11, 2023
1 parent fb8bd58 commit 77f10e8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<BottomSheetState & {height: number}>({
Expand All @@ -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],
)

Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -734,4 +734,4 @@ const styles = StyleSheet.create({
alignSelf: 'stretch',
paddingHorizontal: 16,
},
})
})

0 comments on commit 77f10e8

Please sign in to comment.