Skip to content

Commit

Permalink
Merge pull request #382 from danielr18/fix-prop-types
Browse files Browse the repository at this point in the history
Fix duration prop types
  • Loading branch information
benwiley4000 authored Feb 18, 2019
2 parents acce44b + ebaa469 commit 158e2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/PlayerPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const track = PropTypes.shape({
artist: PropTypes.string,
album: PropTypes.string,
artwork: PropTypes.arrayOf(mediaSessionArtwork.isRequired),
duration: PropTypes.oneOf([PropTypes.string, PropTypes.number]),
duration: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
startingTime: PropTypes.number,
isUnboundedStream: PropTypes.bool,
meta: PropTypes.object
Expand Down

0 comments on commit 158e2c1

Please sign in to comment.