mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-12 15:52:56 +10:00
Fix build
This commit is contained in:
@ -182,11 +182,11 @@ export const ImportDialog = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close();
|
close();
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
toast({
|
toast({
|
||||||
variant: "error",
|
variant: "error",
|
||||||
title: t`Oops, the server returned an error.`,
|
title: t`Oops, the server returned an error.`,
|
||||||
description: error?.message,
|
description: error["message"],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -55,7 +55,7 @@ export class LinkedInParser implements Parser<JSZip, LinkedIn> {
|
|||||||
|
|
||||||
convert(data: LinkedIn) {
|
convert(data: LinkedIn) {
|
||||||
const result = JSON.parse(JSON.stringify(defaultResumeData)) as ResumeData;
|
const result = JSON.parse(JSON.stringify(defaultResumeData)) as ResumeData;
|
||||||
function avoidTooShort(name, len) {
|
function avoidTooShort(name: string, len: number) {
|
||||||
if (!name || name.length<len) {
|
if (!name || name.length<len) {
|
||||||
return "Unknown";
|
return "Unknown";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user