Commit a59b2a28 authored by Alfred Malone's avatar Alfred Malone

change $ remove comments

parent 547e4d20
......@@ -19,7 +19,7 @@ const Stats = props => {
</div>
<div className="m-2">
<strong>Amount Left</strong>
<p>${amtLeft()}</p>
<p>{amtLeft()}$</p>
</div>
</div>
);
......
......@@ -45,7 +45,7 @@ const Row = props => {
*/}
</div>
</td>
<td className="d-flex justify-content-end">${props.value}</td>
<td className="d-flex justify-content-end">{props.value}$</td>
</tr>
);
};
......
......@@ -13,7 +13,6 @@ const initialState = {
export default function expenseReducer(state = initialState, action) {
switch (action.type) {
case ADD_ROW_EXPENSE:
console.log("hi");
return { ...state, row: [...state.row, 0] };
case REMOVE_ROW_EXPENSE:
return {
......@@ -25,7 +24,6 @@ export default function expenseReducer(state = initialState, action) {
let rows = [...state.row];
rows[action.idx] = action.e.target.value;
console.log(rows, rows[action.idx]);
//accumulator for total
let total = rows.reduce(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment