Skip to content

Commit 435a404

Browse files
Address PR Comments
1 parent 742d57e commit 435a404

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,11 @@ export const IdentityType = {
269269
newIdentitiesByType: IdentitiesByType
270270
): IdentitiesByType => {
271271
const newIdentitiesByName: IdentitiesByType = {};
272+
const identityTypeValuesAsStrings: string[] = IdentityType.getValuesAsStrings();
272273

273274
for (const key in newIdentitiesByType) {
274275
// IdentityTypes are stored as numbers but are passed in as strings
275-
if (IdentityType.getValuesAsStrings().includes(key)) {
276+
if (identityTypeValuesAsStrings.includes(key)) {
276277
const identityNameKey = IdentityType.getIdentityName(
277278
parseNumber(key)
278279
);

0 commit comments

Comments
 (0)