fix: auto-refresh subscription after creation + back button already exists

This commit is contained in:
Umbrix Dev
2026-02-09 04:56:14 +03:00
parent b284d01e14
commit 0d2d862d44
2 changed files with 11 additions and 2 deletions

View File

@@ -180,8 +180,8 @@ export default function PlansNew() {
const data = await response.json();
if (data.success) {
// Успех - возвращаемся на главную
router.push('/');
// Успех - возвращаемся на главную с параметром обновления
router.push('/?refresh=true');
} else {
throw new Error(data.error || 'Failed to create subscription');
}