File tree Expand file tree Collapse file tree
credit-grants/(dashboard)/_components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { api } from '@/trpc/client';
88import { UserAvatar } from '@/components/utils/user-avatar' ;
99import { Skeleton } from '@/components/ui/skeleton' ;
1010import { cn } from '@/lib/utils' ;
11- import { formatCurrency } from '@/lib/balance ' ;
11+ import { formatCurrency } from '@/lib/utils ' ;
1212
1313interface UserHeaderProps {
1414 userId : string ;
Original file line number Diff line number Diff 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 ' ;
1717import { Skeleton } from '@/components/ui/skeleton' ;
1818import { api } from '@/trpc/client' ;
1919import {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { mintCreditsToUser } from './mint';
55import { db } from '@/lib/db' ;
66
77import { EnumPaymentSource , Prisma } from '@/generated/prisma' ;
8- import { getUser } from '../user/get' ;
8+ import { getPublicUser } from '../user/get' ;
99
1010export 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' ) ;
You can’t perform that action at this time.
0 commit comments