I am getting this error Argument of type 'string' is not assignable to parameter of (a list of strings).
useEffect(() => {
if (selectedConnection) {
wallet.connect(selectedConnection)
}
}, [selectedConnection])
selectedConnection is a string and wallet.connect takes a string.
I've changed it to
selectedConnection:
| null
| 'authereum'
| 'fortmatic'
| 'frame'
| 'injected'
| 'portis'
| 'squarelink'
| 'provided'
| 'torus'
| 'walletconnect'
| 'walletlink'
and it works.
Why is this even necessary?
Why does Typescript fail here?
