minor fixes around remote avatars

This commit is contained in:
or-else
2022-01-27 15:17:42 -08:00
parent 5cfcd5789f
commit a02be831f2
7 changed files with 14 additions and 16 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export default class AvatarUpload extends React.Component {
render() {
// Randomize id value in case more than one AvatarUpload is shown
// at the same time.
const randId = 'file-input-avatar-' + (Math.random() + '').substr(2);
const randId = 'file-input-avatar-' + ('' + Math.random()).substring(0, 4);
const className = 'avatar-upload' + (this.props.readOnly ? ' read-only' : '');
return (
<div className={className}>