Fixed Stripe connect display name key (#18725)

no issue

- the stripe value is saved under the `stripe_connect_display_name`
column, yet Admin X was querying `stripe_connect_account_name` causing
it to be undefined.

---

<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at f0e6cb6</samp>

Renamed `stripe_connect_account_name` setting to
`stripe_connect_display_name` in the admin-x-settings app. This improves
clarity and consistency for the Stripe integration in the membership
settings.
This commit is contained in:
Ronald Langeveld 2023-10-23 15:56:41 +07:00 committed by GitHub
parent 24849d8787
commit ee4ef4438e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ const Connect: React.FC = () => {
const Connected: React.FC<{onClose?: () => void}> = ({onClose}) => {
const {settings} = useGlobalData();
const [stripeConnectAccountName, stripeConnectLivemode] = getSettingValues(settings, ['stripe_connect_account_name', 'stripe_connect_livemode']);
const [stripeConnectAccountName, stripeConnectLivemode] = getSettingValues(settings, ['stripe_connect_display_name', 'stripe_connect_livemode']);
const {refetch: fetchMembers, isFetching: isFetchingMembers} = useBrowseMembers({
searchParams: {filter: 'status:paid', limit: '0'},

View File

@ -6,7 +6,7 @@ test.describe('Stripe settings', async () => {
const {lastApiRequests} = await mockApi({page, requests: {
...globalDataRequests,
editSettings: {method: 'PUT', path: '/settings/', response: updatedSettingsResponse([
{key: 'stripe_connect_account_name', value: 'Dummy'},
{key: 'stripe_connect_display_name', value: 'Dummy'},
{key: 'stripe_connect_livemode', value: false},
{key: 'stripe_connect_account_id', value: 'acct_123'},
{key: 'stripe_connect_publishable_key', value: 'pk_test_123'},