Skip to content

Commit

Permalink
fix(transfer): fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr committed Oct 7, 2024
1 parent 0b633b5 commit d5427d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/lightning/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ export const addPeer = async ({
}

if (!isValidLightningNodePublicKey(parsedUri.value.publicKey)) {
return err(i18n.t('lightning:error_add_msg'));
return err(i18n.t('lightning:error_add'));
}

const res = await lm.addPeer({
Expand All @@ -1086,7 +1086,7 @@ export const addPeer = async ({
});

if (res.isErr()) {
res.error.message = i18n.t('lightning:error_add_msg', {
res.error.message = i18n.t('lightning:error_add', {
raw: res.error.message,
});
}
Expand Down

0 comments on commit d5427d7

Please sign in to comment.