Skip to content

Commit

Permalink
fix amount undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
SorinC6 committed Sep 12, 2023
1 parent 3d283ae commit f76cf60
Show file tree
Hide file tree
Showing 11 changed files with 240 additions and 240 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,21 @@ export const CreateOrder = () => {

const tokenInfos = useTokenInfos({
wallet,
tokenIds: [createOrder.amounts.buy.tokenId, createOrder.amounts.sell.tokenId],
tokenIds: [createOrder.amounts?.buy.tokenId, createOrder.amounts?.sell.tokenId],
})

const [showLimitPriceWarning, setShowLimitPriceWarning] = useState(false)
const {isBuyTouched, isSellTouched, poolDefaulted} = useSwapTouched()
const {poolList} = usePoolsByPair({
tokenA: createOrder.amounts.sell.tokenId,
tokenB: createOrder.amounts.buy.tokenId,
tokenA: createOrder.amounts?.sell.tokenId ?? '',
tokenB: createOrder.amounts?.buy.tokenId ?? '',
})

useEffect(() => {
if (poolList !== undefined) {
selectedPoolChanged(poolList[0])
poolDefaulted()
}
}, [poolDefaulted, poolList, selectedPoolChanged])
}, [poolDefaulted, selectedPoolChanged, createOrder.amounts, poolList])

const orderTypeLabels = [strings.marketButton, strings.limitButton]
const orderTypeIndex = createOrder.type === 'market' ? 0 : 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"defaultMessage": "!!!Staking Center",
"file": "src/Dashboard/DashboardNavigator.tsx",
"start": {
"line": 63,
"line": 60,
"column": 9,
"index": 1780
"index": 1706
},
"end": {
"line": 66,
"line": 63,
"column": 3,
"index": 1868
"index": 1794
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"defaultMessage": "!!!NFT Details",
"file": "src/NftDetails/NftDetailsNavigator.tsx",
"start": {
"line": 44,
"line": 43,
"column": 9,
"index": 1259
"index": 1213
},
"end": {
"line": 47,
"line": 46,
"column": 3,
"index": 1330
"index": 1284
}
}
]
24 changes: 12 additions & 12 deletions apps/wallet-mobile/translations/messages/src/Receive/Addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,44 @@
"defaultMessage": "!!!Unused addresses",
"file": "src/Receive/Addresses.tsx",
"start": {
"line": 158,
"line": 157,
"column": 19,
"index": 4365
"index": 4303
},
"end": {
"line": 161,
"line": 160,
"column": 3,
"index": 4473
"index": 4411
}
},
{
"id": "components.receive.receivescreen.usedAddresses",
"defaultMessage": "!!!Used addresses",
"file": "src/Receive/Addresses.tsx",
"start": {
"line": 162,
"line": 161,
"column": 17,
"index": 4492
"index": 4430
},
"end": {
"line": 165,
"line": 164,
"column": 3,
"index": 4596
"index": 4534
}
},
{
"id": "components.receive.receivescreen.verifyAddress",
"defaultMessage": "!!!Verify address",
"file": "src/Receive/Addresses.tsx",
"start": {
"line": 166,
"line": 165,
"column": 17,
"index": 4615
"index": 4553
},
"end": {
"line": 169,
"line": 168,
"column": 3,
"index": 4719
"index": 4657
}
}
]
Loading

0 comments on commit f76cf60

Please sign in to comment.