-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix wallet token/badge icons not showing up #7333
Conversation
@@ -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'; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Closes #7324