Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix wallet token/badge icons not showing up #7333

Merged
merged 3 commits into from
Dec 19, 2017
Merged

Fix wallet token/badge icons not showing up #7333

merged 3 commits into from
Dec 19, 2017

Conversation

jacogr
Copy link
Contributor

@jacogr jacogr commented Dec 19, 2017

Closes #7324

parity 2017-12-19 13-49-06

@jacogr jacogr added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Dec 19, 2017
@@ -19,7 +19,7 @@ import { connect } from 'react-redux';

import { hashToImageUrl } from '~/redux/providers/imagesReducer';

import defaultIcon from '../../../assets/images/certifications/unknown.svg';
import defaultIcon from '~/../assets/images/certifications/unknown.svg';
Copy link
Contributor

@amaury1093 amaury1093 Dec 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1st time I see this syntax, didn't know it existed. ~ represents the root right? I.e. where package.json is?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, it is the source root. It is a webpack alias - beats the ../../.. stuff that otherwise just litters the code.

const { image, token } = this.props;

if (!token.native) {
console.log('token', token);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this console.log needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Searched, thought I removed it.

@amaury1093 amaury1093 added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Dec 19, 2017
@jacogr jacogr merged commit bdd4f62 into master Dec 19, 2017
@jacogr jacogr deleted the jg-wallet-icons branch December 19, 2017 13:58
@5chdn 5chdn added this to the 1.9 milestone Jan 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants