PayoutDetailsForm: Fix individual account business URL for US

This commit is contained in:
Vesa Luusua 2019-04-02 15:26:57 +03:00
parent 8247e54988
commit d45f102940

View file

@ -33,7 +33,11 @@ const PayoutDetailsIndividualAccountComponent = props => {
const showMCCForUSField = !!individualConfig.mccForUS;
const showBusinssProfileSection = showBusinessURLField || showMCCForUSField;
const hasBusinessURL = values && values.businessProfile && values.businessProfile.url;
const hasBusinessURL =
values &&
values.individual &&
values.individual.businessProfile &&
values.individual.businessProfile.url;
// Use user profile page as business_url on this marketplace
// or just fake it if it's dev environment using Stripe test endpoints.