fixed built errors in ssg mode

This commit is contained in:
Ren Amamiya
2023-02-23 07:39:18 +07:00
parent 247f28ae75
commit 8a79938391
5 changed files with 35 additions and 43 deletions

View File

@@ -46,10 +46,7 @@ export default function Page() {
const pubKey = getPublicKey(privKey);
if (pubKey) {
router.push({
pathname: '/onboarding/fetch-profile',
query: { privkey: privKey },
});
router.push(`/onboarding/profile/${privKey}`);
}
} catch (error) {
setError('key', {