From cb82e82ed82c6312614ce01e2cc4227b6f4ec0af Mon Sep 17 00:00:00 2001 From: Robin Mitra Date: Sun, 23 Jun 2019 01:12:21 +0100 Subject: [PATCH 1/2] Update 'inspiration' category key to be 'inspirational', to be inline with the API. --- src/menu/components/category.js | 6 +++--- src/reducer.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/menu/components/category.js b/src/menu/components/category.js index 55837e2..79b327b 100644 --- a/src/menu/components/category.js +++ b/src/menu/components/category.js @@ -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', diff --git a/src/reducer.js b/src/reducer.js index 1665469..c6315cb 100644 --- a/src/reducer.js +++ b/src/reducer.js @@ -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); From a5d4dd580e1328405610f35d9c11f8cc098d5a76 Mon Sep 17 00:00:00 2001 From: Robin Mitra Date: Sun, 23 Jun 2019 01:15:33 +0100 Subject: [PATCH 2/2] Bump patch version. --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index fb68d60..e423553 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "quote-factory", - "version": "0.1.0", + "name": "gimme-quote", + "version": "0.2.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c562751..280c0b0 100644 --- a/package.json +++ b/package.json @@ -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": {