mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2025-07-12 21:03:14 -07:00
15 lines
243 B
JavaScript
15 lines
243 B
JavaScript
import { SETTIMER } from "../actions/timerAction";
|
|
|
|
export default (state, action) => {
|
|
if (!state) {
|
|
state = 'Session';
|
|
}
|
|
|
|
switch (action.type) {
|
|
case SETTIMER:
|
|
return action.timer;
|
|
default:
|
|
return state;
|
|
}
|
|
};
|