* update eslint's `comma-dangle` rule to `always-multiline` * add check and fix scripts to package.json * Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
16 lines
345 B
JavaScript
16 lines
345 B
JavaScript
const initialState = {
|
|
lastUpdateCheck: 0,
|
|
};
|
|
|
|
import {ViewTypes} from 'app/constants';
|
|
|
|
export default function clientUpgrade(state = initialState, action) {
|
|
switch (action.type) {
|
|
case ViewTypes.SET_LAST_UPGRADE_CHECK:
|
|
return {
|
|
lastUpdateCheck: Date.now(),
|
|
};
|
|
default:
|
|
return state;
|
|
}
|
|
}
|