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