Skip to content

Commit

Permalink
[Fix] 빌드 관련 버그코드 수정
Browse files Browse the repository at this point in the history
- AWS 서버 업로드위한 빌드 중 발견된 오류코드 수정
- 상세내역) 일부 import 경로명 불일치, 선언 되었으나 사용되지 않은 변수 존재

Issues #44
  • Loading branch information
novice1993 committed Sep 4, 2023
1 parent c1083ef commit dd81cac
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion client/src/components/StockOrderSection/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default StockOrderSection;

const Container = styled.aside`
position: fixed;
right: -500px;
right: 0px;
transition: right 0.3s ease-in-out;
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/StockOrderSection/PriceSetting.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useSelector, useDispatch } from "react-redux";
import { styled } from "styled-components";
import { setSpecifiedPrice, setMarketPrice } from "../../reducer/stockPriceType-Reducer";
import { setSpecifiedPrice, setMarketPrice } from "../../reducer/StockPriceType-Reducer";
import { plusStockOrderPrice, minusStockOrderPrice } from "../../reducer/StockOrderPrice-Reducer";
import { StateProps } from "../../models/stateProps";

Expand Down
12 changes: 3 additions & 9 deletions client/src/reducer/StockOrderPrice-Reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,11 @@ const stockPriceOrderSlice = createSlice({
initialState: initialState,
reducers: {
setStockOrderPrice: (state, action) => {
return action.payload;
},
plusStockOrderPrice: (state, action) => {
return state + action.payload;
},
minusStockOrderPrice: (state, action) => {
if (state > action.payload) {
return state - action.payload;
}
state = action.payload;
return state;
},
plusStockOrderPrice: (state, action) => state + action.payload,
minusStockOrderPrice: (state, action) => (state > action.payload ? state - action.payload : state),
},
});

Expand Down
2 changes: 1 addition & 1 deletion client/src/store/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { configureStore } from "@reduxjs/toolkit";
import { stockOrderTypeReducer } from "../reducer/StockOrderType-Reducer";
import { stockPriceTypeReducer } from "../reducer/stockPriceType-Reducer";
import { stockPriceTypeReducer } from "../reducer/StockPriceType-Reducer";
import { stockOrderPriceReducer } from "../reducer/StockOrderPrice-Reducer";

const store = configureStore({
Expand Down
1 change: 1 addition & 0 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"outDir": "./dist",

/* Bundler mode */
"moduleResolution": "bundler",
Expand Down

0 comments on commit dd81cac

Please sign in to comment.