Skip to content

Commit

Permalink
[fix] remove payment method when not needed (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
sijav authored May 16, 2024
1 parent 18ab690 commit 09644e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export const ChangeProductTierToFreeModal = ({ showModalRef, defaultOpen, produc
onClick={() => {
changeBilling({
product_tier: 'Free',
workspace_payment_method: { method: 'none' },
workspaceId: selectedWorkspace?.id ?? '',
})
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export const ConfirmChangePaymentModal = ({ paymentModalShowRef, currentPaymentM
variant="contained"
onClick={() => {
changeBilling({
product_tier: null,
workspace_payment_method: paymentMethod,
workspaceId: selectedWorkspace?.id ?? '',
})
Expand Down
4 changes: 2 additions & 2 deletions src/shared/types/server/requests/PutWorkspaceBilling.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PaymentMethod, ProductTier } from 'src/shared/types/server'

export interface PutWorkspaceBillingRequest {
product_tier: ProductTier | null
workspace_payment_method: PaymentMethod | null
product_tier?: ProductTier | null
workspace_payment_method?: PaymentMethod | null
}

0 comments on commit 09644e6

Please sign in to comment.