Skip to content

Commit

Permalink
fix(WhatsNewModal): Fix infinite loop of whats new modal
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoTN committed Nov 2, 2017
1 parent 5c49963 commit 625ee87
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tfoosball",
"version": "2.2.0",
"version": "2.2.1",
"private": true,
"devDependencies": {
"autoprefixer": "6.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/homepage/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class App extends React.Component {
</main>
<div className="filler"/>
<footer className="footer-app">
Carefully crafted by <a href="http://www.piotrstaniow.pl/">Piotr Staniów</a>. [v2.2.0]
Carefully crafted by <a href="http://www.piotrstaniow.pl/">Piotr Staniów</a>. [v2.2.1]
</footer>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/shared/auth/auth.reducer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as types from './auth.types';
import {
REQUEST_SAVE_PROFILE, REQUEST_SAVE_MEMBER, SETTINGS_SAVED,
WHATS_NEW_SHOWN
} from '../../settings/settings.actions';

export const profile = (state = {}, action) => {
Expand All @@ -11,7 +10,7 @@ export const profile = (state = {}, action) => {
return Object.assign({}, state, action.partialData);
case SETTINGS_SAVED:
return Object.assign({}, state, action.values);
case WHATS_NEW_SHOWN:
case types.WHATS_NEW_SHOWN:
return Object.assign({}, state, {whats_new_version: action.version});
default:
return state;
Expand Down Expand Up @@ -49,6 +48,7 @@ export const auth = (state = {activate: activate()}, action) => {
case REQUEST_SAVE_MEMBER:
case REQUEST_SAVE_PROFILE:
case SETTINGS_SAVED:
case types.WHATS_NEW_SHOWN:
return {
...state,
profile: profile(state.profile, action),
Expand Down
2 changes: 1 addition & 1 deletion src/shared/auth/auth.types.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export const SET_PROFILE = 'AUTH::SET_PROFILE';
export const ACTIVATE_REQUEST = 'AUTH::ACTIVATE_REQUEST';
export const ACTIVATE_SUCCESS = 'AUTH::ACTIVATE_SUCCESS';
export const ACTIVATE_FAILURE = 'AUTH::ACTIVATE_FAILURE';
export const WHATS_NEW_SHOWN = 'SETTINGS::WHATS_NEW_SHOWN';
export const WHATS_NEW_SHOWN = 'AUTH::WHATS_NEW_SHOWN';
1 change: 1 addition & 0 deletions src/shared/shared.sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function* whatsNewModal() {
• Fix new match bug on mobile
• Fix infinite authentication loop bug
• Fix match deletion permissions bug
• Fix what's new modal bug
`,
onAccept: () => {
},
Expand Down

0 comments on commit 625ee87

Please sign in to comment.