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(); 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"],
}); });
} }
}; };

View File

@ -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 {