fix(font-build): Fix code points allocations
This commit is contained in:
parent
4201f70d7b
commit
efa1f25251
1 changed files with 2 additions and 2 deletions
|
|
@ -27,10 +27,10 @@ export async function allocateCodePoints({
|
|||
}: AllocateCodePointsOptions): Promise<CodePoints> {
|
||||
const baseCodePoints = await getLatestCodePoints();
|
||||
|
||||
const endCodePoint = Math.max(...Object.values(baseCodePoints));
|
||||
|
||||
await Promise.all(
|
||||
iconsWithAliases.map(async ([iconName, aliases]) => {
|
||||
const endCodePoint = Math.max(...Object.values(baseCodePoints));
|
||||
|
||||
if (!baseCodePoints[iconName]) {
|
||||
console.log('Code point not found creating new one for', iconName);
|
||||
baseCodePoints[iconName] = endCodePoint + 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue