WRT this code,
async function connectWallet() {
setIsConnecting(true)
try {
console.log("StarknetKitConnectModal init")
const { connector } = await starknetkitConnectModal()
console.log("Connect Modal connector:", connector)
if (connector) {
await connect({ connector })
}
} catch (error) {
console.error("Failed to connect wallet:", error)
} finally {
console.log("Promise resolved/rejected")
setIsConnecting(false)
}
}
After closing the modal (not connecting for whatever reason),

The promise is just abandoned, it should be rejected.
WRT this code,
After closing the modal (not connecting for whatever reason),

The promise is just abandoned, it should be rejected.