Skip to content

Commit

Permalink
Merge branch 'ckb-ecofund:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
trongdth authored Aug 29, 2024
2 parents 141db81 + 9e6b9fd commit 42a3876
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/afraid-pillows-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ckb-ccc/connector-react": patch
---

fix(connector-react): if the filter is undefined, accept all
5 changes: 4 additions & 1 deletion packages/connector-react/src/hooks/useCcc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ class SignersControllerWithFilter extends ccc.SignersController {
signerInfo: ccc.SignerInfo,
context: ccc.SignersControllerRefreshContext,
) {
if (!(await this.filter?.(signerInfo, { name: walletName, icon }))) {
if (
this.filter &&
!(await this.filter(signerInfo, { name: walletName, icon }))
) {
return;
}

Expand Down

0 comments on commit 42a3876

Please sign in to comment.