@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
JavaScript
'use client'
;
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;