fix: signer
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
kieran 2024-12-29 19:27:29 +00:00
parent e9d88279cf
commit 9f364d2854
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -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;
} }