File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/pages/PlanPage/subRoutes/CurrentOrgPlan Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { Plans } from 'shared/utils/billing'
17
17
import { AlertOptions , type AlertOptionsType } from 'ui/Alert'
18
18
19
19
import CurrentOrgPlan from './CurrentOrgPlan'
20
- import { RequestSchema as EnterpriseAccountDetailsQueryOptsSchema } from './queries/EnterpriseAccountDetailsQueryOpts'
20
+ import { EnterpriseAccountDetailsRequestSchema } from './queries/EnterpriseAccountDetailsQueryOpts'
21
21
22
22
vi . mock ( './BillingDetails' , ( ) => ( { default : ( ) => 'BillingDetails' } ) )
23
23
vi . mock ( './CurrentPlanCard' , ( ) => ( { default : ( ) => 'CurrentPlanCard' } ) )
@@ -138,7 +138,7 @@ afterAll(() => {
138
138
interface SetupArgs {
139
139
accountDetails ?: z . infer < typeof AccountDetailsSchema >
140
140
enterpriseAccountDetails ?: z . infer <
141
- typeof EnterpriseAccountDetailsQueryOptsSchema
141
+ typeof EnterpriseAccountDetailsRequestSchema
142
142
>
143
143
}
144
144
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const AccountSchema = z.object({
15
15
16
16
export type Account = z . infer < typeof AccountSchema >
17
17
18
- export const RequestSchema = z . object ( {
18
+ export const EnterpriseAccountDetailsRequestSchema = z . object ( {
19
19
owner : z
20
20
. object ( {
21
21
account : AccountSchema . nullable ( ) ,
@@ -56,7 +56,9 @@ export function EnterpriseAccountDetailsQueryOpts({
56
56
owner,
57
57
} ,
58
58
} ) . then ( ( res ) => {
59
- const parsedRes = RequestSchema . safeParse ( res ?. data )
59
+ const parsedRes = EnterpriseAccountDetailsRequestSchema . safeParse (
60
+ res ?. data
61
+ )
60
62
61
63
if ( ! parsedRes . success ) {
62
64
return rejectNetworkError ( {
You can’t perform that action at this time.
0 commit comments