Commit 3a9e36d6 authored by Angelo Gulina's avatar Angelo Gulina

Update passed namespace id

Selected group should correspond to the namespace id
parent fc2c4e0d
......@@ -37,7 +37,7 @@ export default {
const { customer } = data;
return {
setup_for_company: data.isSetupForCompany,
selected_group: data.subscription.namespaceId,
selected_group: data.selectedNamespaceId,
new_user: data.isNewUser,
redirect_after_success: data.redirectAfterSuccess,
customer: {
......
......@@ -76,7 +76,7 @@ describe('Confirm Order', () => {
expect(Api.confirmOrder).toHaveBeenCalledTimes(1);
expect(Api.confirmOrder.mock.calls[0][0]).toMatchObject({
setup_for_company: true,
selected_group: undefined,
selected_group: '30',
new_user: false,
redirect_after_success: '/path/to/redirect/',
customer: {
......
......@@ -38,7 +38,7 @@ export const stateData = {
__typename: 'Subscription',
},
redirectAfterSuccess: '/path/to/redirect/',
selectedNamespaceId: null,
selectedNamespaceId: '30',
selectedPlanId: null,
paymentMethod: {
id: null,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment