Skip to content

Commit 5fdc6dd

Browse files
committed
fix: user specified hiar style
1 parent 7b6315d commit 5fdc6dd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default class ReactNiceAvatar extends Component<NiceAvatarProps> {
6262
break;
6363
}
6464
}
65-
65+
6666
return (
6767
<div
6868
id={id}

src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ export const genConfig: GenConfigFunc = (userConfig = {}) => {
186186
break;
187187
}
188188
}
189+
} else {
190+
response.hairStyle = userConfig.hairStyle
189191
}
190192

191193
// Hat

0 commit comments

Comments
 (0)