Skip to content

Commit

Permalink
Update downloadModal.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Rem0o committed Feb 15, 2024
1 parent cd171bb commit e0eee7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reactComponents/downloadModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ function GetDownloadable(
}

var splittedName = name.split("_");
const [fc, net, major, minor] = splittedName;
const [fc, version, net, major, minor] = splittedName;

const dotnetString = major == "4" ? ".NET Framework" : ".NET";
const dotnetVersionString =
minor == "0" ? major.toString() : `${major}.${minor}`;

return {
name: `Fan Control V${props.version} ${dotnetString} ${dotnetVersionString}`,
name: `Fan Control V${version} ${dotnetString} ${dotnetVersionString}`,
url: asset.browser_download_url,
type: ExtensionToAssetType(extension)
};
Expand Down

0 comments on commit e0eee7b

Please sign in to comment.