Fix youTube crash on iOS providing the right prop type (#1856)

This commit is contained in:
Elias Nahum 2018-06-29 16:33:18 -04:00 committed by Harrison Healey
parent dca5e85449
commit 10cba91981

View file

@ -369,7 +369,7 @@ export default class PostBodyAdditionalContent extends PureComponent {
const time = link.match(timeRegex);
if (!time || !time[0]) {
return '';
return 0;
}
const hours = time[2] ? time[2].match(/([0-9]+)h/) : null;