Skip to content

Commit

Permalink
fix: accept numbers or strings
Browse files Browse the repository at this point in the history
Co-authored-by: Fedi Rajhi <[email protected]>
  • Loading branch information
cloudpresser and fedirjh authored Jun 12, 2023
1 parent c275f20 commit 50ef668
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import personalDetailsPropType from '../../pages/personalDetailsPropType';

const propTypes = {
/** User's Account ID */
accountID: PropTypes.string.isRequired,
accountID: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
/** Fallback User Details object used if no accountID */
fallbackUserDetails: PropTypes.shape({
/** Avatar URL */
Expand Down

0 comments on commit 50ef668

Please sign in to comment.