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 { ...@@ -37,7 +37,7 @@ export default {
const { customer } = data; const { customer } = data;
return { return {
setup_for_company: data.isSetupForCompany, setup_for_company: data.isSetupForCompany,
selected_group: data.subscription.namespaceId, selected_group: data.selectedNamespaceId,
new_user: data.isNewUser, new_user: data.isNewUser,
redirect_after_success: data.redirectAfterSuccess, redirect_after_success: data.redirectAfterSuccess,
customer: { customer: {
......
...@@ -76,7 +76,7 @@ describe('Confirm Order', () => { ...@@ -76,7 +76,7 @@ describe('Confirm Order', () => {
expect(Api.confirmOrder).toHaveBeenCalledTimes(1); expect(Api.confirmOrder).toHaveBeenCalledTimes(1);
expect(Api.confirmOrder.mock.calls[0][0]).toMatchObject({ expect(Api.confirmOrder.mock.calls[0][0]).toMatchObject({
setup_for_company: true, setup_for_company: true,
selected_group: undefined, selected_group: '30',
new_user: false, new_user: false,
redirect_after_success: '/path/to/redirect/', redirect_after_success: '/path/to/redirect/',
customer: { customer: {
......
...@@ -38,7 +38,7 @@ export const stateData = { ...@@ -38,7 +38,7 @@ export const stateData = {
__typename: 'Subscription', __typename: 'Subscription',
}, },
redirectAfterSuccess: '/path/to/redirect/', redirectAfterSuccess: '/path/to/redirect/',
selectedNamespaceId: null, selectedNamespaceId: '30',
selectedPlanId: null, selectedPlanId: null,
paymentMethod: { paymentMethod: {
id: null, 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