Skip to content

Commit

Permalink
removes console logs and adds name back to token balances
Browse files Browse the repository at this point in the history
  • Loading branch information
comountainclimber committed Sep 4, 2018
1 parent dea88a7 commit 68a33a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/actions/balancesActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type Props = {
export const ID = 'balances'

async function getBalances({ net, address, tokens }: Props) {
console.log(tokens)
const endpoint = await api.getRPCEndpointFrom({ net }, api.neoscan)
// token balances
const tokenBalances = await api.nep5.getTokenBalances(
Expand All @@ -28,7 +27,6 @@ async function getBalances({ net, address, tokens }: Props) {
.map(tokenKey => {
const foundToken = tokens.find(token => token.symbol === tokenKey)
if (foundToken && tokenBalances[tokenKey]) {
console.log(foundToken)
return {
[foundToken.scriptHash]: {
...foundToken,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class TokenBalancesPanel extends React.Component<Props> {
</div>
)

renderToken = (token: TokenBalanceType, i: number) => console.log(token) || (
renderToken = (token: TokenBalanceType, i: number) => (
<div
key={token.scriptHash}
className={classNames(styles.tableData, {
Expand Down
9 changes: 6 additions & 3 deletions app/core/nep5.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ const getTokenEntry = ((): Function => {
symbol: string,
scriptHash: string,
networkId: string,
image: string
image: string,
name: string
) => ({
id: `${id++}`, // eslint-disable-line no-plusplus
symbol,
scriptHash,
networkId,
isUserGenerated: false,
image
image,
name
})
})()

Expand Down Expand Up @@ -63,7 +65,8 @@ export const getDefaultTokens = async (): Promise<Array<TokenItemType>> => {
tokenData.symbol,
tokenData.networks['1'].hash,
MAIN_NETWORK_ID,
tokenData.image
tokenData.image,
tokenData.networks['1'].name
)
)
)
Expand Down

0 comments on commit 68a33a9

Please sign in to comment.