mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
Fix back button cycling in Telegram Mini App
Add replace: true to all navigate() calls in useBackButton hooks
Prevents history cycles when navigating back and forth
All 32 admin pages now use navigate(path, { replace: true })
Back button now goes directly to parent without cycling
This commit is contained in:
@@ -101,7 +101,9 @@ export const promoApi = {
|
||||
|
||||
// Deactivate current active promo discount
|
||||
deactivateDiscount: async (): Promise<DeactivateDiscountResponse> => {
|
||||
const response = await apiClient.post<DeactivateDiscountResponse>('/cabinet/promocode/deactivate-discount');
|
||||
const response = await apiClient.post<DeactivateDiscountResponse>(
|
||||
'/cabinet/promocode/deactivate-discount',
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user