Skip to content

Commit 50f4765

Browse files
Nicolas Pierre-charleschipp972
authored andcommitted
fix(ips): block additional ips price list for apac
ref: #MANAGER-19412 Signed-off-by: Nicolas Pierre-charles <[email protected]>
1 parent 05fbb60 commit 50f4765

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/manager/apps/ips/src/data/hooks/catalog/useAdditionalIpBlockPricings.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const useAdditionalIpPricings = ({
5353
subsidiary: environment.user.ovhSubsidiary,
5454
enabled: !!region && serviceType !== ServiceType.dedicatedCloud,
5555
});
56+
5657
const { data: pccData, ...pccQuery } = usePccCatalog({
5758
serviceName,
5859
enabled: serviceType === ServiceType.dedicatedCloud,
@@ -99,7 +100,8 @@ export const useAdditionalIpPricings = ({
99100
return plan.invoiceName.includes('CANADA');
100101
}
101102
return isApac
102-
? plan.invoiceName.includes('APAC')
103+
? plan.invoiceName.includes('APAC') ||
104+
plan.invoiceName.includes('ASIA')
103105
: plan.invoiceName.includes('EUROPE');
104106
})
105107
.sort((planA: CatalogIpPlan, planB: CatalogIpPlan) =>

packages/manager/apps/ips/src/pages/order/order.context.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export const OrderContextProvider: React.FC<React.PropsWithChildren> = ({
9191
setSelectedRegion: (newRegion: string) => {
9292
setSelectedRegion(newRegion);
9393
setSelectedOffer(null);
94+
setSelectedPlanCode(null);
9495
},
9596
selectedOffer,
9697
setSelectedOffer: (newOffer: IpOffer) => {

0 commit comments

Comments
 (0)