Skip to content

Commit abdd518

Browse files
Merge pull request #450 from FunD-StockProject/fix/qa-01-19
Fix/qa 01 19
2 parents 3a36c64 + 6616920 commit abdd518

17 files changed

Lines changed: 137 additions & 50 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ node_modules
1111
dist
1212
dist-ssr
1313
*.local
14+
.env
15+
16+
# Vercel
17+
.vercel
1418

1519
# Editor directories and files
1620
.vscode/*

src/components/Modal/ExperimentDetail/ExperimentDetail.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const ExperimentDetail = ({ modalData: { experimentId } }: { modalData: Experime
4141
if (!experimentDetail) return [];
4242

4343
const { buyAt, status, buyScore, buyPrice, currentScore, currentPrice, roi, country } = experimentDetail;
44-
console.log(roi);
4544
const currency = STOCK_COUNTRY_MAP[country].currency;
4645
return [
4746
{

src/components/Search/StockChart/StockChart.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,6 @@ const StockChart = ({
11671167
const [chartData, updateChartData] = useStockChartQuery(stockId, selectedPeriod);
11681168

11691169
const handlePeriodClick = (period: PERIOD_CODE) => (e: React.MouseEvent<HTMLDivElement>) => {
1170-
console.log(period);
11711170
e.preventDefault();
11721171
e.stopPropagation();
11731172
setSelectedPeriod(period);

src/components/SearchBar/PopularStocks/PopularStocks.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const PopularStocks = () => {
1414
const { addRecentStock } = useRecentStocks();
1515

1616
const [popularStocks] = usePopularStockFetchQuery();
17-
console.log(popularStocks);
1817

1918
const handlePopularStockClick = (symbolName: string, country: StockCountryKey) => () => {
2019
addRecentStock(symbolName, country);

src/components/ShortView/Tutorial/Tutorial.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ const ShortViewTutorial = () => {
7474
const [tutorialWatched, setTutorialWatched] = useLocalStorageState<boolean>('tutorial_watched_shortview');
7575

7676
const handleClickTutorialEnd = () => {
77-
console.log('tutorial end');
7877
setTutorialWatched(true);
7978
};
8079

src/controllers/common/base.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ const fetchAuthData = async (path: string, init: RequestInit = {}, isFormData: b
4747
});
4848

4949
if (res.status === 401) {
50-
// console.log('Error 401: 인증 에러 발생. refetch 시도');
51-
5250
const refreshToken = localStorage.getItem('refresh_token');
53-
console.log(1, refreshToken);
5451

5552
const reissueRes = await fetch(`${baseURL}/auth/reissue`, {
5653
method: 'POST',

src/hooks/useAuthInfo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const useAuthInfo = () => {
4242
};
4343

4444
const setAuthInfo = (accessToken: string, refreshToken: string, userInfo: UserInfo) => {
45-
console.log(2, accessToken);
4645
setAccessToken(accessToken);
4746
setRefreshToken(refreshToken);
4847
setUserInfo(userInfo);

src/hooks/useSocialAuth.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ export const useSocialAuth = () => {
7979
);
8080

8181
const handleOAuthCallback = useCallback(
82-
async (code: string, provider: string, state: string) => {
83-
console.log('🔵 [웹] handleOAuthCallback 시작:', { code, provider, state });
84-
82+
async (code: string, provider: string, _state: string) => {
8583
clearAuthInfo();
8684
setIsLoading(true);
8785
setError(null);
@@ -90,10 +88,7 @@ export const useSocialAuth = () => {
9088
// API는 state로 redirect URI의 base64 인코딩 값을 기대합니다
9189
const redirectUri = window.location.origin + `/login/oauth2/code/${provider}`;
9290
const apiState = btoa(redirectUri);
93-
94-
console.log('🔵 [웹] fetchOAuth2Login 호출 시작', { redirectUri, apiState });
9591
const res = await fetchOAuth2Login(code, apiState, provider as ProviderKey);
96-
console.log('🔵 [웹] fetchOAuth2Login 응답:', res);
9792

9893
if (res.state === 'NEED_REGISTER') {
9994
// WebView에서는 네이티브에 메시지 전송
@@ -167,12 +162,9 @@ export const useSocialAuth = () => {
167162
const handleWebViewMessage = useCallback(
168163
(event: MessageEvent) => {
169164
try {
170-
console.log('🔔 [웹] WebView 메시지 수신:', event.data);
171165
const { type, data } = JSON.parse(event.data);
172-
console.log('🔔 [웹] 파싱된 메시지:', { type, data });
173166

174167
if (type === MESSAGE_TYPES.AUTH_SUCCESS) {
175-
console.log('✅ [웹] AUTH_SUCCESS 처리:', data);
176168
handleOAuthCallback(data.code, data.provider, data.state || '');
177169
} else if (type === MESSAGE_TYPES.AUTH_ERROR) {
178170
console.error('OAuth auth error:', data.error);
@@ -234,16 +226,13 @@ export const useSocialAuth = () => {
234226
// WebView 메시지 리스너 등록
235227
useEffect(() => {
236228
if (!isWebView) {
237-
console.log('⚠️ [웹] WebView 환경이 아님 - 메시지 리스너 미등록');
238229
return;
239230
}
240231

241-
console.log('✅ [웹] WebView 메시지 리스너 등록');
242232
window.addEventListener('message', handleWebViewMessage);
243233
document.addEventListener('message', handleWebViewMessage as EventListener);
244234

245235
return () => {
246-
console.log('🗑️ [웹] WebView 메시지 리스너 제거');
247236
window.removeEventListener('message', handleWebViewMessage);
248237
document.removeEventListener('message', handleWebViewMessage as EventListener);
249238
};

src/pages/Favorites/Favorites.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ const Favorites = () => {
8080
};
8181

8282
const handleNotificationToggle = () => {
83-
console.log(currentNotificationItemRef.current);
8483
if (!currentNotificationItemRef.current) return;
8584
toggleNotification(currentNotificationItemRef.current);
8685
closeOffNotificationModal();

src/pages/Register/Register.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,6 @@ const Register = () => {
255255
provider.toUpperCase(),
256256
);
257257

258-
console.log(profileImage);
259-
260258
if (!res) return;
261259

262260
// sessionStorage 정리

0 commit comments

Comments
 (0)