Skip to content

Commit

Permalink
fix: 사용하지않는 콘솔 및 더미 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Eumhongin committed Sep 18, 2022
1 parent 460f28e commit b22d062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
16 changes: 2 additions & 14 deletions src/components/Payment/Payment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ const Payment = ({
<script src="https://js.tosspayments.com/v1"></script>
</head>
<body>
응 결제 준비중이야~
<body>
<script>
var clientKey = '${clientKey}'
var tossPayments = TossPayments(clientKey) // 클라이언트 키로 초기화하기
Expand Down Expand Up @@ -62,7 +61,6 @@ const Payment = ({
sharedCookiesEnabled={true}
onShouldStartLoadWithRequest={(request) => {
const { url, mainDocumentURL } = request;
console.log(url, mainDocumentURL);
if (isBlank(url, mainDocumentURL)) {
detectIsLoading(true);
return true;
Expand All @@ -71,21 +69,11 @@ const Payment = ({
detectIsLoading(false);

if (isAppUrl(url)) {
console.log('앱 URL 입니다.');
/* 3rd-party 앱 오픈 */
openPGApp(url).catch((e) => {
// const { code, message } = e;
console.log(e);
// callback({
// imp_success: false,
// error_code: code,
// error_msg: message,
// });
});
openPGApp(url);

return false;
}
console.log('앱 URL 아닙니다.');
return true;
}}
/>
Expand Down
3 changes: 0 additions & 3 deletions src/components/Payment/containers/PaymentContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ const PaymentContainer = ({
e.nativeEvent.data
) as TossPaymentResultMessageTypes;

console.log(tossPaymentMessageFromWeb);

// 웹뷰로 부터 성공 및 실패 둘중 아무것도 받지못했을떄.
if (!tossPaymentMessageFromWeb.type) {
onApproveError();
Expand All @@ -55,7 +53,6 @@ const PaymentContainer = ({

const detectIsLoading = useCallback(
(isLoading: boolean) => {
console.log(isLoading);
if (!onLoading) {
return;
}
Expand Down

0 comments on commit b22d062

Please sign in to comment.