Skip to content

Commit

Permalink
Addressed code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin-Parvulescu committed Oct 25, 2023
1 parent b6be089 commit 7c5cd4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions apps/passport/app/routes/settings/accounts/references.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ const getLinksWithAuthorizedAppNames = async (
if (l.type === ReferenceType.Authorization) {
return {
...l,
title: l.identifier
? authorizedAppNamesMap[l.identifier] || undefined
: undefined,
title: l.identifier && authorizedAppNamesMap[l.identifier],
}
}
return l
Expand Down
6 changes: 3 additions & 3 deletions platform/starbase/src/jsonrpc/methods/getAppName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export const getAppNameBatch = async ({
ctx: Context
}): Promise<z.infer<typeof GetAppNameBatchOutput>> =>
Promise.all(
input.map(async (clientID) => ({
clientId: clientID,
name: await getNameForApp(ctx, clientID),
input.map(async (clientId) => ({
clientId,
name: await getNameForApp(ctx, clientId),
}))
)

Expand Down

0 comments on commit 7c5cd4f

Please sign in to comment.