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 742d57e commit 435a404Copy full SHA for 435a404
src/types.ts
@@ -269,10 +269,11 @@ export const IdentityType = {
269
newIdentitiesByType: IdentitiesByType
270
): IdentitiesByType => {
271
const newIdentitiesByName: IdentitiesByType = {};
272
+ const identityTypeValuesAsStrings: string[] = IdentityType.getValuesAsStrings();
273
274
for (const key in newIdentitiesByType) {
275
// IdentityTypes are stored as numbers but are passed in as strings
- if (IdentityType.getValuesAsStrings().includes(key)) {
276
+ if (identityTypeValuesAsStrings.includes(key)) {
277
const identityNameKey = IdentityType.getIdentityName(
278
parseNumber(key)
279
);
0 commit comments