try fix for small authsig bug
This commit is contained in:
parent
d79342a5f0
commit
db5ae4f998
@ -9,7 +9,7 @@
|
||||
|
||||
// Load wallet on component mount
|
||||
onMount(async () => {
|
||||
const storedAuthSig = localStorage.getItem(LOCAL_STORAGE_KEYS.AUTH_SIGNATURE);
|
||||
const storedAuthSig = await localStorage.getItem(LOCAL_STORAGE_KEYS.AUTH_SIGNATURE);
|
||||
|
||||
if (storedAuthSig) {
|
||||
authSig = JSON.parse(storedAuthSig);
|
||||
@ -22,13 +22,13 @@
|
||||
await pkpWallet.init();
|
||||
console.log(pkpWallet);
|
||||
} else {
|
||||
alert('no authsig');
|
||||
alert('no authsig parsed from local storage');
|
||||
}
|
||||
});
|
||||
|
||||
const sendTransaction = async () => {
|
||||
if (!authSig) {
|
||||
alert('no authsig');
|
||||
alert('authsig not ready in send transaction');
|
||||
} else {
|
||||
console.log('transaction initiated');
|
||||
const from = pkpWallet.address;
|
||||
|
Loading…
Reference in New Issue
Block a user