We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fa1214 commit af383c5Copy full SHA for af383c5
src/Avatar.js
@@ -82,6 +82,7 @@ function urlForColor(color) {
82
const colorToDataURLCache = new Map();
83
84
export function defaultAvatarUrlForString(s) {
85
+ if (!s) return "";
86
const defaultColors = ['#0DBD8B', '#368bd6', '#ac3ba8'];
87
let total = 0;
88
for (let i = 0; i < s.length; ++i) {
0 commit comments