Update ChannelSubscriptionScreen.tsx

This commit is contained in:
Egor
2026-01-20 14:43:46 +03:00
committed by GitHub
parent b777e9b1a1
commit d23097b4e3

View File

@@ -44,8 +44,9 @@ export default function ChannelSubscriptionScreen() {
try {
// Make any authenticated request - if channel check passes, it will succeed
await apiClient.get('/cabinet/auth/me')
// If we get here, subscription is valid
// If we get here, subscription is valid - reload page
clearBlocking()
window.location.reload()
} catch (err: unknown) {
// Check if it's still a channel subscription error
const error = err as { response?: { status?: number; data?: { detail?: { code?: string } } } }