Skip to content

Commit

Permalink
Fix load on bad address, Txn chart order fix (Uniswap#149)
Browse files Browse the repository at this point in the history
* Fix load on bad address

* fix chart order
  • Loading branch information
ianlapham committed May 19, 2020
1 parent c86c07a commit 429042a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/TxnList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ function TxnList({ transactions, symbol0Override, symbol1Override, color }) {
</DataText>
{!below780 && (
<>
<DataText area="amountToken">{formattedNum(item.token0Amount) + ' ' + item.token0Symbol}</DataText>
<DataText area="amountOther">{formattedNum(item.token1Amount) + ' ' + item.token1Symbol}</DataText>
<DataText area="amountToken">{formattedNum(item.token0Amount) + ' ' + item.token0Symbol}</DataText>
</>
)}
{!below1080 && (
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/PairData.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export function usePairData(pairAddress) {
async function checkForPairData() {
if (!pairData && pairAddress && ethPrice) {
let data = await getPairData(pairAddress)
update(data)
data && update(data)
}
}
checkForPairData()
Expand Down

0 comments on commit 429042a

Please sign in to comment.