Skip to content

Commit e55cad4

Browse files
committed
nulling api before the connect
1 parent cb71cdb commit e55cad4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/yoroiProvider.js

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export const YoroiProvider = ({children}) => {
110110
*/
111111
const connect = async (walletName, requestId, silent, throwError = false) => {
112112
setConnectionState(IN_PROGRESS)
113+
setApi(null)
113114
console.debug(`[dApp][connect] is called`)
114115

115116
if (!window.cardano) {

0 commit comments

Comments
 (0)