Remove replace flag from back button navigation to fix double-click issue

Fixed issue where users had to click the Telegram Mini App back button twice
in many admin pages. The replace flag was causing conflicts between Telegram's
BackButton internal history and React Router's history management.

Updated all 32 admin pages to use simple navigate() calls without replace flag.
This commit is contained in:
c0mrade
2026-02-04 06:11:29 +03:00
parent 55e2068606
commit 482bdd0b0d
32 changed files with 32 additions and 32 deletions

View File

@@ -29,7 +29,7 @@ export default function AdminPayments() {
const { capabilities } = usePlatform();
// Use native Telegram back button in Mini App
useBackButton(() => navigate('/admin', { replace: true }));
useBackButton(() => navigate('/admin'));
const [page, setPage] = useState(1);
const [methodFilter, setMethodFilter] = useState<string>('');