Skip to content

Commit e4a5eb3

Browse files
committed
fix: show proper error if slashpay.json is empty
1 parent f51fdeb commit e4a5eb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/screens/Contacts/Contact.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const Contact = ({
9494
showToast({
9595
type: 'warning',
9696
title: t('contact_pay_error'),
97-
description: t('other:try_again'),
97+
description: res.error.message,
9898
});
9999
}
100100
};

src/utils/i18n/locales/en/slashtags.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
"string": "Unable To Pay Contact"
241241
},
242242
"error_pay_empty_msg": {
243-
"string": "This contact has no payment data."
243+
"string": "The contact you’re trying to send to hasn’t enabled payments."
244244
},
245245
"auth_depricated_title": {
246246
"string": "Deprecated"

0 commit comments

Comments
 (0)