From 3d6cf7314cc8f3b2248cae4d02b54bc8c39ac3ea Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Wed, 22 Jan 2025 22:06:30 -0800 Subject: [PATCH] Fix spelling --- apps/dashboard/src/components/data-table/api-key-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/components/data-table/api-key-table.tsx b/apps/dashboard/src/components/data-table/api-key-table.tsx index 6bbd250e4..25b9001a0 100644 --- a/apps/dashboard/src/components/data-table/api-key-table.tsx +++ b/apps/dashboard/src/components/data-table/api-key-table.tsx @@ -107,7 +107,7 @@ export function ApiKeyTable(props: { apiKeys: ApiKey[] }) { ...apiKey, status: ({ 'valid': 'valid', 'manually-revoked': 'revoked', 'expired': 'expired' } as const)[apiKey.whyInvalid() || 'valid'], } satisfies ExtendedApiKey)); - // first soft based on status, then by createdAt + // first sort based on status, then by createdAt return keys.sort((a, b) => { if (a.status === b.status) { return a.createdAt < b.createdAt ? 1 : -1;