hcengineering / hcengineering/platform
Some of emojis are not displayed properly as icons
- Dominant language
- TypeScript
- Stars
- 27.7k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Some of emojis are not displayed properly when used as a document or project icon.
**Steps to reproduce**
1. Edit a project in Tracker
2. Click Choose Icon
3. Select 1️⃣ icon as the project icon
4. Click Save button

**Actual behavior**
Project icon changes to ‘1’ displayed as text, not as emoji

**Expected behavior**
Project icon is displayed properly as an emoji
**Root cause**
Emojis are stored as numbers and we use `String.fromCodepoint` and `emoji.codePointAt(0)` to convert between string and number representation. But the sample emoji consists of three codepoints hence we don’t display it properly.
View in Huly UBERF-5971
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.