Skip to content

Commit

Permalink
Attempt fixing connection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Jan 29, 2025
1 parent 86e141e commit 91308ab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/web/src/CommentSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,8 @@ function NotificationOptIn(props) {
setSigner(s);

const addr = await s.getAddress();
const isEligible = await eligible(
props.allowlist,
props.delegations,
addr,
);
const isEligible =
addr && (await eligible(props.allowlist, props.delegations, addr));

setIdentity(isEligible);
}
Expand Down Expand Up @@ -122,7 +119,7 @@ const EmailNotificationLink = (props) => {
const provider = useProvider();
const identity =
account.address &&
localAccount &&
localAccount?.address &&
eligible(props.allowlist, props.delegations, localAccount.address);

const handleSubmit = async (e) => {
Expand Down

0 comments on commit 91308ab

Please sign in to comment.