File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,13 @@ export default function PostrueCrew(props: PostureCrewProps): ReactElement {
150
150
const { myGroupData, isLoading } = useMyGroup ( )
151
151
const navigate = useNavigate ( )
152
152
const [ cheeredUpCrewList , setCheeredUpCrewList ] = useState < number [ ] > ( [ ] )
153
+ const [ myCheerCount , setMyCheerCount ] = useState ( 0 )
153
154
154
155
useEffect ( ( ) => {
155
156
const today = dayjs ( ) . format ( "YYYY-MM-DD" )
156
157
getMyCheerUpInfo ( today ) . then ( ( { data } ) => {
157
158
setCheeredUpCrewList ( data . cheeredUpUids )
159
+ setMyCheerCount ( data . countCheeredUp )
158
160
} )
159
161
} , [ ] )
160
162
@@ -235,6 +237,7 @@ export default function PostrueCrew(props: PostureCrewProps): ReactElement {
235
237
const today = dayjs ( ) . format ( "YYYY-MM-DD" )
236
238
getMyCheerUpInfo ( today ) . then ( ( { data } ) => {
237
239
setCheeredUpCrewList ( data . cheeredUpUids )
240
+ setMyCheerCount ( data . countCheeredUp )
238
241
} )
239
242
}
240
243
} )
@@ -301,7 +304,7 @@ export default function PostrueCrew(props: PostureCrewProps): ReactElement {
301
304
rank = { crewMyInfo . myInfo . rank }
302
305
nickname = { crewMyInfo . myInfo . nickname }
303
306
score = { crewMyInfo . myInfo . score }
304
- isMyCheerCount = { crewMyInfo . countCheeredUp }
307
+ isMyCheerCount = { myCheerCount }
305
308
isMe
306
309
/>
307
310
) }
You can’t perform that action at this time.
0 commit comments