on master help sign in
Use hasInstance instead of matchWith for authenticated wallet check
b30edacpkova
src/views/Point.js+1−4
@@ -98,10 +98,7 @@ class Point extends React.Component {
98
98
99 const online = Maybe.Just.hasInstance(web3)
99 const online = Maybe.Just.hasInstance(web3)
100
100
101− const authenticated = wallet.matchWith({
101+ const authenticated = Maybe.Just.hasInstance(wallet)
102− Just: _ => true,
103− Nothing: _ => false
104− })
105
102
106 const routeHandler = route => {
103 const routeHandler = route => {
107 popRoute()
104 popRoute()