Skip to content

Commit fdad222

Browse files
committed
coderabbit fixes
1 parent 94730d0 commit fdad222

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

apps/webapp/app/routes/admin._index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
4141
};
4242

4343
export default function AdminDashboardRoute() {
44-
const { users, filters, page, pageCount } = useTypedLoaderData<typeof loader>() as any;
44+
const { users, filters, page, pageCount } = useTypedLoaderData<typeof loader>();
4545

4646
return (
4747
<main
@@ -82,14 +82,14 @@ export default function AdminDashboardRoute() {
8282
<Paragraph>No users found for search</Paragraph>
8383
</TableBlankRow>
8484
) : (
85-
users.map((user: (typeof users)[0]) => {
85+
users.map((user) => {
8686
return (
8787
<TableRow key={user.id}>
8888
<TableCell>
8989
<CopyableText value={user.email} />
9090
</TableCell>
9191
<TableCell>
92-
{user.orgMemberships.map((org: (typeof user.orgMemberships)[0]) => (
92+
{user.orgMemberships.map((org) => (
9393
<LinkButton
9494
key={org.organization.slug}
9595
variant="minimal/small"

apps/webapp/app/routes/api.v1.plain.customer-cards.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ export async function action({ request }: ActionFunctionArgs) {
107107
if (!parsed.success) {
108108
logger.warn("Invalid Plain customer card request", {
109109
errors: parsed.error.errors,
110-
body,
111110
});
112111
return json({ error: "Invalid request body" }, { status: 400 });
113112
}
@@ -170,7 +169,7 @@ export async function action({ request }: ActionFunctionArgs) {
170169
logger.info("User not found for Plain customer card request", {
171170
customerId: customer.id,
172171
externalId: customer.externalId,
173-
email: customer.email,
172+
hasEmail: !!customer.email,
174173
});
175174
return json({ cards: [] });
176175
}
@@ -377,11 +376,11 @@ export async function action({ request }: ActionFunctionArgs) {
377376
cards.push({
378377
key: "projects",
379378
timeToLiveSeconds: 300,
380-
components: [
381-
uiComponent.container({
382-
content: [
383-
uiComponent.text({
384-
text: "Projects",
379+
components: [
380+
uiComponent.container({
381+
content: [
382+
uiComponent.text({
383+
text: "Projects",
385384
size: "L",
386385
color: "NORMAL",
387386
}),

0 commit comments

Comments
 (0)