Permalink
Browse files

fix movie name on result component

  • Loading branch information...
ozzie0428 committed Jan 13, 2020
1 parent 3a8ffeb commit 4fb1a3e13e3ebdefd1e54903d60b1480c3e5b954
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/conponents /Result.jsx
@@ -3,14 +3,14 @@ import React, { Component } from "react";
export default class Result extends Component {

render() {
console.log("props in results", this.props.selectedMovie);
console.log("props in results", this.props.selectedMovie.show.image.medium);
return (
<div>
{this.props.selectedMovie ? (
<div>

<img src={this.props.selectedMovie.show.image.medium} alt="movie pic" />
<h5>{this.props.selectedMovie.name}</h5>
<h5>{this.props.selectedMovie.show.name}</h5>
</div>
) : null}
</div>

0 comments on commit 4fb1a3e

Please sign in to comment.