File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 1- import { apiAuth } from '@/shared/api/instance' ;
1+ import { apiWithToken } from '@/shared/api/instance' ;
22import type { ApiResponse } from '@/shared/types/authtypes' ;
33
44export interface StampStatus {
@@ -8,7 +8,7 @@ export interface StampStatus {
88}
99
1010export 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 ;
You can’t perform that action at this time.
0 commit comments