Skip to content

Commit

Permalink
Merge pull request #197 from zkLinkProtocol/feat/withdraw_claimable_s…
Browse files Browse the repository at this point in the history
…tatus

fix rumtime error on okx app
  • Loading branch information
zkLeonardo authored Apr 26, 2024
2 parents ce8259a + 7fe2667 commit be9d35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const useOnboardStore = defineStore("onboard", () => {
wagmiConnector.value = connector;
connectorName.value = connector?.name;
let name = "";
if (connections?.[0]?.connector.getProvider) {
if (connections?.[0]?.connector?.getProvider && typeof connections?.[0]?.connector?.getProvider === "function") {
const provider: unknown = await connections?.[0]?.connector.getProvider();
name = provider?.session?.peer?.metadata?.name;
} else {
Expand Down

0 comments on commit be9d35d

Please sign in to comment.