diff --git a/pages/admin.tsx b/pages/admin.tsx index fc20a87..01cfdc2 100644 --- a/pages/admin.tsx +++ b/pages/admin.tsx @@ -200,9 +200,11 @@ const Admin = (props: Props) => { const changeGiftStatus = async (gain: Gain) => { const body = { gain } fetcher('/api/user/update-gift', 'PUT', body) - console.log('g', gain); + setTimeout(() => { + router.refresh(); + }, 2000) - setCurrentUserGain(gain) + // setCurrentUserGain(gain) // router.refresh(); }; @@ -278,7 +280,7 @@ const Admin = (props: Props) => {