Skip to content

Commit

Permalink
#270 : improve type detection on compile
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermau committed Feb 10, 2025
1 parent c127fa3 commit fcd8dd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/ui/shared/LogoURLButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ const resolveLogoFromURL = (
};

const resolveLogoFromType = (
type: ApiTypes.SILL.Sources
sourceType: ApiTypes.SILL.Sources
): { URLlogo: URL | undefined; textFromURL: string | undefined } => {
switch (type) {
switch (sourceType) {
case "HAL":
return {
URLlogo: new URL(
Expand Down Expand Up @@ -118,6 +118,7 @@ const resolveLogoFromType = (
textFromURL: "GitComptoir Du Libre"
};
default:
sourceType satisfies never;
return {
URLlogo: undefined,
textFromURL: undefined
Expand Down

0 comments on commit fcd8dd9

Please sign in to comment.