Skip to content

Commit

Permalink
Merge pull request #16 from robinmitra/fix-broken-app
Browse files Browse the repository at this point in the history
Fix bug due to recently renamed category name
  • Loading branch information
robinmitra authored Jun 23, 2019
2 parents 6b84ef9 + a5d4dd5 commit 38f5d5b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gimme-quote",
"version": "0.2.2",
"version": "0.2.3",
"description": "A minimal desktop app for getting your dose of famous quotes.",
"main": "main.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/menu/components/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ const menuItem = new MenuItem({
label: 'Category',
submenu: [
{
id: 'inspiration',
label: 'Inspiration',
id: 'inspirational',
label: 'Inspirational',
type: 'checkbox',
click: updateCategory,
checked: isChecked('inspiration')
checked: isChecked('inspirational')
},
{
id: 'movies',
Expand Down
2 changes: 1 addition & 1 deletion src/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const interval = (state, action) => {
};

const category = (state, action) => {
if (!settings.has('category')) settings.set('category', ['inspiration']);
if (!settings.has('category')) settings.set('category', ['inspirational']);
let category = settings.get('category');
if (action.type === 'UPDATE_CATEGORY') {
logger.info('Updating category -', 'current state:', state, 'action:', action);
Expand Down

0 comments on commit 38f5d5b

Please sign in to comment.