Skip to content

Commit

Permalink
Fix OS display format for iOS (#297)
Browse files Browse the repository at this point in the history
* fix OS format function to properly show iOS

* bring back windows check
  • Loading branch information
pascal-fischer authored Nov 13, 2023
1 parent dc95d8b commit 2613948
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/utils/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ export const formatOS = (os) => {
if (os.startsWith("Darwin")) {
return os.replace("Darwin", "MacOS");
}
// capitalize first letter
os = os.charAt(0).toUpperCase() + os.slice(1);

if (!os.startsWith("iOS")) {
// capitalize first letter
os = os.charAt(0).toUpperCase() + os.slice(1);
}

return os;
};

Expand Down

0 comments on commit 2613948

Please sign in to comment.