Skip to content

Commit

Permalink
fix($env): order API integration update (#8431)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek authored Oct 11, 2024
1 parent cc07a48 commit 226874f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 226874f

Please sign in to comment.