mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix: remove duplicate 'Create subscription' block in multi-subscription admin view
This commit is contained in:
@@ -1757,9 +1757,8 @@ export default function AdminUserDetail() {
|
||||
</>
|
||||
) : null}
|
||||
|
||||
{/* Create new subscription (shown when no subs, or single-tariff mode) */}
|
||||
{hasPermission('users:subscription') &&
|
||||
!(subscriptionDetailView && userSubscriptions.length > 1) && (
|
||||
{/* Create new subscription — only for single-sub users or no subs */}
|
||||
{hasPermission('users:subscription') && userSubscriptions.length <= 1 && (
|
||||
<div className="rounded-xl bg-dark-800/50 p-4">
|
||||
{userSubscriptions.length === 0 && (
|
||||
<div className="mb-4 text-center text-dark-400">
|
||||
|
||||
Reference in New Issue
Block a user