fix check subscription
This commit is contained in:
@@ -182,6 +182,7 @@ def enroll_now(enrollment: Enrollment, context: Context):
|
|||||||
),
|
),
|
||||||
cond_expr='attribute_exists(sk)',
|
cond_expr='attribute_exists(sk)',
|
||||||
exc_cls=SubscriptionRequiredError,
|
exc_cls=SubscriptionRequiredError,
|
||||||
|
table_name=USER_TABLE,
|
||||||
)
|
)
|
||||||
transact.put(
|
transact.put(
|
||||||
item={
|
item={
|
||||||
@@ -289,6 +290,7 @@ def enroll_later(enrollment: Enrollment, context: Context):
|
|||||||
),
|
),
|
||||||
cond_expr='attribute_exists(sk)',
|
cond_expr='attribute_exists(sk)',
|
||||||
exc_cls=SubscriptionRequiredError,
|
exc_cls=SubscriptionRequiredError,
|
||||||
|
table_name=USER_TABLE,
|
||||||
)
|
)
|
||||||
transact.put(
|
transact.put(
|
||||||
item={
|
item={
|
||||||
|
|||||||
@@ -119,6 +119,20 @@ export default function Component({
|
|||||||
className="rounded-full"
|
className="rounded-full"
|
||||||
>
|
>
|
||||||
<PlusIcon />
|
<PlusIcon />
|
||||||
|
|
||||||
|
<span
|
||||||
|
className="
|
||||||
|
transition-all
|
||||||
|
duration-200
|
||||||
|
ease-out
|
||||||
|
hidden
|
||||||
|
group-hover:block
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<span className="overflow-hidden whitespace-nowrap">
|
||||||
|
Matricular-se
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
</ItemActions>
|
</ItemActions>
|
||||||
</Item>
|
</Item>
|
||||||
|
|||||||
Reference in New Issue
Block a user