fix: auto-refresh subscription after creation + back button already exists
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user