Skip to content

Commit

Permalink
minor connect button condition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmohsin7 committed Feb 16, 2025
1 parent 26133f4 commit cbb3fd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/lib/pages/payments/stripe_connect_setup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class _StripeConnectSetupState extends State<StripeConnectSetup> with SingleTick
AnimatedLoadingButton(
text: "Connect Now",
loaderColor: Colors.black,
onPressed: provider.stripeConnectionState == PaymentConnectionState.notConnected ||
onPressed: provider.stripeConnectionState == PaymentConnectionState.inComplete ||
provider.selectedCountryId != null
? () async {
MixpanelManager().track('Stripe Connect Started');
Expand All @@ -242,13 +242,13 @@ class _StripeConnectSetupState extends State<StripeConnectSetup> with SingleTick
}
}
: () async {},
color: provider.stripeConnectionState == PaymentConnectionState.connected ||
color: provider.stripeConnectionState == PaymentConnectionState.inComplete ||
provider.selectedCountryId != null
? Colors.white
: Colors.grey,
textStyle: TextStyle(
fontSize: 16,
color: provider.stripeConnectionState == PaymentConnectionState.connected ||
color: provider.stripeConnectionState == PaymentConnectionState.inComplete ||
provider.selectedCountryId != null
? Colors.black
: Colors.grey[600],
Expand Down

0 comments on commit cbb3fd2

Please sign in to comment.