Skip to content

Commit 040853e

Browse files
committed
fix type errors
1 parent 4f38cbb commit 040853e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • packages/app/control/src

‎packages/app/control/src/app/(app)/admin/_components/header/User.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { api } from '@/trpc/client';
88
import { UserAvatar } from '@/components/utils/user-avatar';
99
import { Skeleton } from '@/components/ui/skeleton';
1010
import { cn } from '@/lib/utils';
11-
import { formatCurrency } from '@/lib/balance';
11+
import { formatCurrency } from '@/lib/utils';
1212

1313
interface UserHeaderProps {
1414
userId: string;

‎packages/app/control/src/app/(app)/admin/credit-grants/(dashboard)/_components/table.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
TableEmpty,
1414
} from '@/components/ui/table';
1515

16-
import { formatCurrency } from '@/lib/balance';
16+
import { formatCurrency } from '@/lib/utils';
1717
import { Skeleton } from '@/components/ui/skeleton';
1818
import { api } from '@/trpc/client';
1919
import {

‎packages/app/control/src/services/credits/grant.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { mintCreditsToUser } from './mint';
55
import { db } from '@/lib/db';
66

77
import { EnumPaymentSource, Prisma } from '@/generated/prisma';
8-
import { getUser } from '../user/get';
8+
import { getPublicUser } from '../user/get';
99

1010
export const creditGrantCodeSchema = z.object({
1111
code: z.string(),
@@ -71,7 +71,7 @@ export const redeemCreditGrantCode = async (
7171
userId: string,
7272
{ code, freeTier, echoAppId }: z.infer<typeof redeemCreditGrantCodeSchema>
7373
) => {
74-
const user = await getUser(userId);
74+
const user = await getPublicUser(userId);
7575

7676
if (!user) {
7777
throw new Error('User not found');

0 commit comments

Comments
 (0)