[FIX] Giphy not showing (#810)
This commit is contained in:
parent
a891ee14ee
commit
fde8aea173
|
@ -58,7 +58,7 @@ export default class extends Component {
|
||||||
render() {
|
render() {
|
||||||
const { modalVisible, isPressed } = this.state;
|
const { modalVisible, isPressed } = this.state;
|
||||||
const { baseUrl, file, user } = this.props;
|
const { baseUrl, file, user } = this.props;
|
||||||
const img = `${ baseUrl }${ file.image_url }?rc_uid=${ user.id }&rc_token=${ user.token }`;
|
const img = file.image_url.includes('http') ? file.image_url : `${ baseUrl }${ file.image_url }?rc_uid=${ user.id }&rc_token=${ user.token }`;
|
||||||
|
|
||||||
if (!img) {
|
if (!img) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue