Skip to content

Commit

Permalink
re-added setLightningAddress during create()
Browse files Browse the repository at this point in the history
  • Loading branch information
myxmaster committed Jan 23, 2025
1 parent 9d4c6f9 commit 78a48db
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions stores/LightningAddressStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,21 @@ export default class LightningAddressStore {
.then(async (response: any) => {
const data = response.json();
const status = response.info().status;
const { handle, created_at, success } =
data;
const {
handle,
domain,
created_at,
success
} = data;

if (status === 200 && success) {
if (handle) {
{
this.setLightningAddress(
handle,
domain
);
}
await this.settingsStore.updateSettings(
{
lightningAddressGlobal:
Expand Down

0 comments on commit 78a48db

Please sign in to comment.