fix: audio duration

Was going to rename the component, but not important for now.
This commit is contained in:
Thomas Zarebczan 2019-09-29 11:19:29 -04:00 committed by Sean Yesmunt
parent 541be31148
commit 7ddd43117f

View file

@ -9,7 +9,7 @@ type Props = {
function VideoDuration(props: Props) {
const { claim, className } = props;
const video = claim && claim.value && claim.value.video;
const video = claim && claim.value && (claim.value.video || claim.value.audio);
let duration;
if (video && video.duration) {
// $FlowFixMe