Skip to content

Commit

Permalink
Fix stripe accountLink for producer's account page
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpochat authored Jun 19, 2024
1 parent f629a48 commit 0fb3dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/domains/producer/ProducerController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function ProducerController() {
function displayStripeAccountLink() {
if(producer?.stripeAccount) {
if (!producer.stripeAccount.detailsSubmitted) {
return <Button onClick={() => window.location.href = producer.stripeAccount.stripeAccountLink}>Saisissez votre RIB et vos informations réglementaires sur Stripe</Button>
return <Button onClick={() => window.location.href = producer.stripeAccount.accountLink}>Saisissez votre RIB et vos informations réglementaires sur Stripe</Button>
} else {
return <>
<Button onClick={() => window.open('https://dashboard.stripe.com/', '_blank')}>Consultez vos encaissements sur Stripe</Button>
Expand Down Expand Up @@ -171,4 +171,4 @@ function ProducerController() {
}


export default ProducerController
export default ProducerController

0 comments on commit 0fb3dc7

Please sign in to comment.