diff --git a/frontend/src/pages/AccountSettingsPage.tsx b/frontend/src/pages/AccountSettingsPage.tsx index 0cf99650..ea59273c 100644 --- a/frontend/src/pages/AccountSettingsPage.tsx +++ b/frontend/src/pages/AccountSettingsPage.tsx @@ -237,8 +237,17 @@ export function AccountSettingsPage() { const invitesData = await accountsApi.getInvites() setInvites(invitesData) } catch (err) { - toast.error('Failed to send invitation') - console.error(err) + const resp = (err as any)?.response + if (resp?.status === 402 && resp?.data?.detail?.code === 'seat_limit_exceeded') { + const d = resp.data.detail + const label = d.role === 'l1_tech' ? 'L1' : 'Engineer' + toast.warning( + `${label} seats full: ${d.current}/${d.limit}. Upgrade your plan to add more.`, + ) + } else { + toast.error('Failed to send invitation') + console.error(err) + } } finally { setIsInviting(false) }