Skip to content

Commit 10214db

Browse files
authored
Merge pull request #17 from kiing-dom/feat/filter-problem-difficulty
Feat/filter problem difficulty
2 parents c86be72 + d339f47 commit 10214db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "KeepCode",
4-
"version": "0.3.6",
4+
"version": "0.3.7",
55
"description": "Prep smarter for coding interviews! KeepCode tracks your LeetCode progress so you can focus on solving.",
66
"permissions": ["storage", "tabs", "activeTab", "https://leetcode.com/*"],
77
"background": {

options/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ document.addEventListener('DOMContentLoaded', () => {
3030
filtered = filtered.filter(p => Array.isArray(p.tags) && p.tags.includes(filterTag));
3131
}
3232

33-
if (filterDifficulty && filterDifficulty == 'all') {
34-
filtered = filtered.filter(p => difficulty === filterDifficulty);
33+
if (filterDifficulty && filterDifficulty !== 'all') {
34+
filtered = filtered.filter(p => p.difficulty === filterDifficulty);
3535
}
3636

3737
if (searchTerm) {

0 commit comments

Comments
 (0)