mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
Update ChannelSubscriptionScreen.tsx
This commit is contained in:
@@ -44,8 +44,9 @@ export default function ChannelSubscriptionScreen() {
|
|||||||
try {
|
try {
|
||||||
// Make any authenticated request - if channel check passes, it will succeed
|
// Make any authenticated request - if channel check passes, it will succeed
|
||||||
await apiClient.get('/cabinet/auth/me')
|
await apiClient.get('/cabinet/auth/me')
|
||||||
// If we get here, subscription is valid
|
// If we get here, subscription is valid - reload page
|
||||||
clearBlocking()
|
clearBlocking()
|
||||||
|
window.location.reload()
|
||||||
} catch (err: unknown) {
|
} catch (err: unknown) {
|
||||||
// Check if it's still a channel subscription error
|
// Check if it's still a channel subscription error
|
||||||
const error = err as { response?: { status?: number; data?: { detail?: { code?: string } } } }
|
const error = err as { response?: { status?: number; data?: { detail?: { code?: string } } } }
|
||||||
|
|||||||
Reference in New Issue
Block a user