Clean up console log statements.

This commit is contained in:
Patrick Fic
2021-11-22 23:20:13 -08:00
parent b462b2fa03
commit 65402c1420
43 changed files with 26 additions and 106 deletions

View File

@@ -124,11 +124,6 @@ export function ContractDetailPageContainer({
if (loading) return <LoadingSpinner />;
if (!!!data.cccontracts_by_pk) return <NotFound />;
console.log(
"data.cccontracts_by_pk",
!!!data.cccontracts_by_pk,
data.cccontracts_by_pk
);
return (
<RbacWrapper action="contracts:detail">

View File

@@ -92,7 +92,7 @@ export function CsiContainerPage({ currentUser }) {
/>
</Layout>
);
console.log(bodyshop);
return (
<Layout
style={{ height: "100vh", display: "flex", flexDirection: "column" }}

View File

@@ -1,6 +1,6 @@
import {
PaymentRequestButtonElement,
useStripe
useStripe,
} from "@stripe/react-stripe-js";
import React, { useEffect, useState } from "react";
@@ -10,7 +10,6 @@ export default function MobilePaymentComponent() {
const [paymentRequest, setPaymentRequest] = useState(null);
useEffect(() => {
if (stripe) {
console.log("in useeff");
const pr = stripe.paymentRequest({
country: "CA",
displayItems: [{ label: "Deductible", amount: 1 }],
@@ -23,10 +22,8 @@ export default function MobilePaymentComponent() {
requestPayerEmail: true,
});
console.log("pr", pr);
// Check the availability of the Payment Request API.
pr.canMakePayment().then((result) => {
console.log("result", result);
if (result) {
setPaymentRequest(pr);
} else {
@@ -45,7 +42,7 @@ export default function MobilePaymentComponent() {
if (paymentRequest) {
paymentRequest.on("paymentmethod", async (ev) => {
//Call server side to get the client secret
//Call server side to get the client secret
// Confirm the PaymentIntent without handling potential next actions (yet).
const { error: confirmError } = await stripe.confirmCardPayment(
"clientSecret",
@@ -70,7 +67,6 @@ export default function MobilePaymentComponent() {
// The payment failed -- ask your customer for a new payment method.
} else {
// The payment has succeeded.
console.log('paymentIntent', paymentIntent)
}
}
});