Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston-Hsiao committed Nov 6, 2024
1 parent e1a017d commit e01ff34
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions frontend/src/components/pages/SellerOnboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,20 @@ export default function SellerOnboarding() {
const handleCreateNewAccount = async () => {
try {
setAccountCreatePending(true);
console.log("Creating new Stripe Connect account...");

const { data, error } = await auth.client.POST(
"/stripe/create-connect-account",
{},
);

if (error) {
console.error("Error creating Connect account:", error);
addErrorAlert(error);
return;
}

if (data) {
const accountId = data.account_id;
if (accountId) {
console.log("Account created successfully:", accountId);
setConnectedAccountId(accountId);

setTimeout(() => {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/components/pages/SellerOnboardingContinued.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,20 @@ export default function SellerOnboardingContinued() {
const handleCreateNewAccount = async () => {
try {
setAccountCreatePending(true);
console.log("Creating new Stripe Connect account...");

const { data, error } = await auth.client.POST(
"/stripe/create-connect-account",
{},
);

if (error) {
console.error("Error creating Connect account:", error);
addErrorAlert(error);
return;
}

if (data) {
const accountId = data.account_id;
if (accountId) {
console.log("Account created successfully:", accountId);
setConnectedAccountId(accountId);

setTimeout(() => {
Expand Down
1 change: 0 additions & 1 deletion store/app/routers/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from store.app.routers.users import get_session_user_with_read_permission
from store.settings import settings

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

stripe_router = APIRouter()
Expand Down

0 comments on commit e01ff34

Please sign in to comment.