added comment about falseness of authorId, authorUsername

This commit is contained in:
Ben Wheeler 2018-11-14 06:42:57 -05:00
parent 8e967737e5
commit 4bb5e641bb

View file

@ -490,8 +490,10 @@ class Preview extends React.Component {
Preview.propTypes = {
assetHost: PropTypes.string.isRequired,
// If there's no author, this will be false`
authorId: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
authorThumbnailUrl: PropTypes.string,
// If there's no author, this will be false`
authorUsername: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
backpackOptions: PropTypes.shape({
host: PropTypes.string,