Skip to content

Commit

Permalink
fix: subscription calldata (#859)
Browse files Browse the repository at this point in the history
* fix: subscription calldata

* fix: refview
  • Loading branch information
fricoben authored Jul 22, 2024
1 parent ecd5861 commit 88da332
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/domains/autorenewal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ const Subscription: FunctionComponent<SubscriptionProps> = ({ groups }) => {
!address ||
!termsBox ||
(needMedadata && emailError) ||
!areDomainSelected(selectedDomains)
!areDomainSelected(selectedDomains) ||
callData.length === 0 // Cover the case where there are no domains to subscribe
}
>
{!termsBox
Expand All @@ -407,6 +408,8 @@ const Subscription: FunctionComponent<SubscriptionProps> = ({ groups }) => {
? "Select a domain to subscribe"
: needMedadata && emailError
? "Enter a valid Email"
: callData.length === 0
? "You're already subscribed"
: "Enable subscription"}
</Button>
) : (
Expand Down

0 comments on commit 88da332

Please sign in to comment.