File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { WalletProviderBase } from './WalletProviderBase.js';
16
16
17
17
export interface WalletProviderProps {
18
18
children : ReactNode ;
19
- wallets : Adapter [ ] ;
19
+ wallets : readonly Adapter [ ] ;
20
20
autoConnect ?: boolean | ( ( adapter : Adapter ) => Promise < boolean > ) ;
21
21
localStorageKey ?: string ;
22
22
onError ?: ( error : WalletError , adapter ?: Adapter ) => void ;
@@ -49,7 +49,7 @@ export function WalletProvider({
49
49
onError,
50
50
} : WalletProviderProps ) {
51
51
const { connection } = useConnection ( ) ;
52
- const adaptersWithStandardAdapters = useStandardWalletAdapters ( adapters ) ;
52
+ const adaptersWithStandardAdapters = useStandardWalletAdapters ( adapters as Adapter [ ] ) ;
53
53
const mobileWalletAdapter = useMemo ( ( ) => {
54
54
if ( ! getIsMobile ( adaptersWithStandardAdapters ) ) {
55
55
return null ;
You can’t perform that action at this time.
0 commit comments