This commit is contained in:
parent
e9d88279cf
commit
9f364d2854
@ -10,13 +10,12 @@ export default function useLogin() {
|
||||
() => LoginState.snapshot(),
|
||||
);
|
||||
const system = useContext(SnortContext);
|
||||
const signer = LoginState.getSigner();
|
||||
return session
|
||||
? {
|
||||
type: session.type,
|
||||
publicKey: session.publicKey,
|
||||
system,
|
||||
api: new LNVpsApi(ApiUrl, signer),
|
||||
}
|
||||
type: session.type,
|
||||
publicKey: session.publicKey,
|
||||
system,
|
||||
api: new LNVpsApi(ApiUrl, LoginState.getSigner()),
|
||||
}
|
||||
: undefined;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user