Skip to content

Commit

Permalink
Fix broken os_patch_level check
Browse files Browse the repository at this point in the history
When OS patch level cannot be read, mirrorbits sets it to null instead
of skipping it.
  • Loading branch information
luk1337 committed Mar 15, 2024
1 parent c0825e5 commit 80e1d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/downloadable/DownloadableItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default {
},
computed: {
osPatchLevelHuman() {
if (this.os_patch_level !== undefined) {
if (typeof this.os_patch_level === 'string') {
return new Date(this.os_patch_level).toLocaleString('en-US', {
month: 'long',
year: 'numeric',
Expand Down

0 comments on commit 80e1d32

Please sign in to comment.