mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix($env): order API integration update (#8431)
This commit is contained in:
parent
cc07a48500
commit
226874fe23
@ -23,7 +23,7 @@ export const OrderEnvironments: FC<OrderEnvironmentsProps> = () => {
|
||||
);
|
||||
const errors = useFormErrors();
|
||||
const { orderEnvironments } = useOrderEnvironmentApi();
|
||||
const { setToastData, setToastApiError } = useToast();
|
||||
const { setToastApiError } = useToast();
|
||||
|
||||
if (!isPro() || !isPurchaseAdditionalEnvironmentsEnabled) {
|
||||
return null;
|
||||
|
@ -84,8 +84,6 @@ export const OrderEnvironmentsDialog: FC<OrderEnvironmentsDialogProps> = ({
|
||||
const [costCheckboxChecked, setCostCheckboxChecked] = useState(false);
|
||||
const [environmentNames, setEnvironmentNames] = useState<string[]>(['']);
|
||||
|
||||
console.log({ environmentNames });
|
||||
|
||||
const trackEnvironmentSelect = () => {
|
||||
trackEvent('order-environments', {
|
||||
props: {
|
||||
|
@ -12,8 +12,7 @@ export const useOrderEnvironmentApi = () => {
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
|
||||
const res = await makeRequest(req.caller, req.id);
|
||||
return res.json();
|
||||
await makeRequest(req.caller, req.id);
|
||||
};
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user