Skip to content

Commit

Permalink
fix: useInjectedConnectors (#412)
Browse files Browse the repository at this point in the history
should fix in case a connector get removed
  • Loading branch information
fracek authored Mar 12, 2024
2 parents 5f39326 + 87569d8 commit 988cb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/connectors/discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function mergeConnectors(
}: Required<Pick<UseInjectedConnectorsProps, "includeRecommended" | "order">>,
): Connector[] {
const injectedIds = new Set(injected.map((connector) => connector.id));
const allConnectors = injected;
const allConnectors = [...injected];
const shouldAddRecommended =
includeRecommended === "always" ||
(includeRecommended === "onlyIfNoConnectors" && injected.length === 0);
Expand Down

0 comments on commit 988cb50

Please sign in to comment.