Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(transcripts): Fixes name and avatar assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Jan 5, 2018
1 parent 7ac62a8 commit 193e93a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store/effects/transcripts/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ const mapSpeakers = speakers =>
return transcript
}

const { name, avatar } = find(speakers, { id: transcript.speaker })
const result = find(speakers, { id: transcript.speaker })

return {
...transcript,
speaker: {
name,
avatar
name: get(result, 'name', null),
avatar: get(result, 'avatar', null)
}
}
})
Expand Down

0 comments on commit 193e93a

Please sign in to comment.