Browse Source

🐛 Fix score filter handle undefined value

master
KaKi87 7 months ago
parent
commit
9bf7f8b148
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      public/assets/js/index.js

+ 1
- 1
public/assets/js/index.js View File

@ -73,7 +73,7 @@ const _c = {
inAppFree: app => !app.offersIAP,
category: (app, n) => app.genreId === n || app.genreId.split('_')[0] === n,
minInstalls: (app, n) => app.minInstalls >= n,
minScore: (app, n) => app.score.toFixed(1) >= n,
minScore: (app, n) => typeof app.score === 'number' && app.score.toFixed(1) >= n,
maxSize: (app, n) => parseFloat(app.size) <= n,
maxUpdatedDays: (app, n) => Math.floor((Date.now() - new Date(app.updated)) / 86400000) <= n,
minAndroidVersion : (app, n) => androidVersions.includes(app.androidVersion) && androidVersions.indexOf(app.androidVersion) <= androidVersions.indexOf(n)


Loading…
Cancel
Save