You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a simple substring that will return only the first character.
If you pass AB without space, it will calculate length to 1 and it will also return only first character.
So the only working way to use custom initials is to pass correct length via function args.
Solution is to split every character instead of splitting by space in line 32.
After looking more closely at the code, I agree with you that line 32 should be .split('') instead of .split(' '). We'd super welcome a PR for this if you're open to a community contribution!
Activity
cee-chen commentedon Sep 29, 2022
After looking more closely at the code, I agree with you that line 32 should be
.split('')instead of.split(' '). We'd super welcome a PR for this if you're open to a community contribution!richardtorres314 commentedon Nov 23, 2022
@constancecchen Is this issue okay to close?
cee-chen commentedon Nov 23, 2022
Ah, I didn't realize this wasn't autolinked with the PR, apologies! Closing - thanks for your work on this again! 🎉
richardtorres314 commentedon Nov 23, 2022
Haha no worries! Thank you!