mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2025-07-11 12:43:15 -07:00
15 lines
277 B
JavaScript
15 lines
277 B
JavaScript
import { SETOPERATIONSTRING } from "../actions/operationStringAction";
|
|
|
|
export default (state, action) => {
|
|
if (!state) {
|
|
state = '';
|
|
}
|
|
|
|
switch (action.type) {
|
|
case SETOPERATIONSTRING:
|
|
return action.operationString;
|
|
default:
|
|
return state;
|
|
};
|
|
};
|