Skip to content

Commit

Permalink
Fix Windows server version lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed Nov 24, 2023
1 parent dd67ab6 commit f4d6ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@


export const formatOS = (os) => {
if (os.lowerCase.startsWith("windows 10")) {
if (os.toLowerCase().startsWith("windows 10")) {
return "Windows 10";
}

if (os.lowerCase.startsWith("windows server 10")) {
if (os.toLowerCase().startsWith("windows server 10")) {
return "Windows Server";
}

Expand Down

0 comments on commit f4d6ce5

Please sign in to comment.