MCPcopy Create free account
hub / github.com/antonnell/networklist-org / onDeactivateClicked

Function onDeactivateClicked

components/unlock/unlock.js:149–158  ·  view source on GitHub ↗
(deactivate, connector)

Source from the content-addressed store, hash-verified

147}
148
149function onDeactivateClicked(deactivate, connector) {
150 if(deactivate) {
151 deactivate()
152 }
153 if(connector && connector.close) {
154 connector.close()
155 }
156 stores.accountStore.setStore({ account: { }, web3context: null })
157 stores.emitter.emit(CONNECTION_DISCONNECTED)
158}
159
160function MyComponent(props) {
161

Callers

nothing calls this directly

Calls 1

setStoreMethod · 0.80

Tested by

no test coverage detected