diff --git a/app/app/(dashboard)/home/page.tsx b/app/app/(dashboard)/home/page.tsx index 61d3917..0f36c09 100644 --- a/app/app/(dashboard)/home/page.tsx +++ b/app/app/(dashboard)/home/page.tsx @@ -30,6 +30,12 @@ export default function HomePage() { const [loading,setLoading] = useState(false) const router = useRouter() + function encodeId(inputId:number) { + const inputStr = inputId.toString(); + const encodedStr = Buffer.from(inputStr).toString('base64').replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_'); + return encodedStr; + } + useEffect(()=>{ setLoading(true) getTutorialStatus().then((res)=>{ @@ -104,7 +110,7 @@ export default function HomePage() {