UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

15 lines (11 loc) 405 B
'use client' 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const isSelectedWalletAlreadyConnected = (linkedWallets, selectedWallet, user) => { if (!user) return false; return linkedWallets .map(({ connector }) => connector.key) .includes(selectedWallet.key); }; exports.isSelectedWalletAlreadyConnected = isSelectedWalletAlreadyConnected;