Skip to content

Commit d226a85

Browse files
authored
Merge pull request #131 from geulDa/api/#112/ai-video-api
Fix: stamp 현황판 수정
2 parents 830288d + 5c72ef9 commit d226a85

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/pages/main/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ export default function MainPage() {
5050
{isLoading ? (
5151
<p className='text-gray-400 text-center py-4'>불러오는 중...</p>
5252
) : isError ? (
53-
<p className='text-red-400 text-center py-4'>
54-
데이터를 불러오지 못했습니다 😢
55-
</p>
53+
<StampBoard
54+
count={0}
55+
total={10}
56+
/>
5657
) : (
5758
<StampBoard
5859
count={data?.collectedStampCount ?? 0}

src/shared/main/api/getStampStatus.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { apiAuth } from '@/shared/api/instance';
1+
import { apiWithToken } from '@/shared/api/instance';
22
import type { ApiResponse } from '@/shared/types/authtypes';
33

44
export interface StampStatus {
@@ -8,7 +8,7 @@ export interface StampStatus {
88
}
99

1010
export const getStampStatus = async (): Promise<StampStatus> => {
11-
const { data } = await apiAuth.get<ApiResponse<StampStatus>>(
11+
const { data } = await apiWithToken.get<ApiResponse<StampStatus>>(
1212
'/api/stamps/collection',
1313
);
1414
return data.data;

0 commit comments

Comments
 (0)