mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
add logs to check what's wrong
This commit is contained in:
@ -39,6 +39,8 @@ export const getServerSideProps: GetServerSideProps<Props> = async ({ query, loc
|
||||
try {
|
||||
const resume = await fetchResumeByIdentifier({ username, slug });
|
||||
|
||||
console.log('Preview~getServerSideProps~resume', resume);
|
||||
|
||||
return {
|
||||
props: { username, slug, resume, ...(await serverSideTranslations(locale, ['common'])) },
|
||||
};
|
||||
@ -61,6 +63,8 @@ const Preview: NextPage<Props> = ({ username, slug, resume: initialData }) => {
|
||||
}, [dispatch, initialData]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log('Preview~useEffect~resume', resume);
|
||||
|
||||
const locale = get(resume, 'metadata.locale', 'en');
|
||||
|
||||
if (!isEmpty(resume) && router.locale !== locale) {
|
||||
|
||||
Reference in New Issue
Block a user