fix: created_at on refresh
This commit is contained in:
@ -142,7 +142,10 @@ export default class AlbyWallet implements LNWallet {
|
|||||||
});
|
});
|
||||||
const json = await req.json();
|
const json = await req.json();
|
||||||
if (req.ok) {
|
if (req.ok) {
|
||||||
this.#token = json as OAuthToken;
|
this.#token = {
|
||||||
|
...(json as OAuthToken),
|
||||||
|
created_at: unixNow()
|
||||||
|
};
|
||||||
this.onChange(this.#token);
|
this.onChange(this.#token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user