Fix build

This commit is contained in:
Zsombor Gegesy
2024-03-09 12:33:49 +01:00
parent befc5a67fc
commit 71d3cea100
2 changed files with 3 additions and 3 deletions

View File

@ -182,11 +182,11 @@ export const ImportDialog = () => {
}
close();
} catch (error) {
} catch (error: any) {
toast({
variant: "error",
title: t`Oops, the server returned an error.`,
description: error?.message,
description: error["message"],
});
}
};

View File

@ -55,7 +55,7 @@ export class LinkedInParser implements Parser<JSZip, LinkedIn> {
convert(data: LinkedIn) {
const result = JSON.parse(JSON.stringify(defaultResumeData)) as ResumeData;
function avoidTooShort(name, len) {
function avoidTooShort(name: string, len: number) {
if (!name || name.length<len) {
return "Unknown";
} else {