Skip to content

Commit 0ba84aa

Browse files
committed
untrusted toast copy update
1 parent 7a74840 commit 0ba84aa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/status_im/contexts/contact/trust/events.cljs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
[utils.re-frame :as rf]))
1010

1111
(rf/reg-event-fx :contact/mark-as-untrusted-success
12-
(fn [{:keys [db]} [contact-id name]]
12+
(fn [{:keys [db]} [contact-id]]
1313
{:db (update-in db
1414
[:contacts/contacts contact-id]
1515
#(assoc % :trust-status constants/contact-trust-status-untrustworthy))
1616
:dispatch
1717
[:toasts/upsert
1818
{:type :positive
19-
:text (i18n/label :t/marked-as-untrusted {:username name})}]}))
19+
:text (i18n/label :t/marked-as-untrusted)}]}))
2020

2121
(rf/reg-event-fx :contact/mark-as-untrusted
2222
(fn [_ [contact-id name]]
@@ -27,14 +27,14 @@
2727
:on-error #(log/error "failed mark contact as untrusted" % contact-id)}]}))
2828

2929
(rf/reg-event-fx :contact/remove-trust-status-success
30-
(fn [{:keys [db]} [contact-id name]]
30+
(fn [{:keys [db]} [contact-id]]
3131
{:db (update-in db
3232
[:contacts/contacts contact-id]
3333
#(assoc % :trust-status constants/contact-trust-status-unknown))
3434
:dispatch
3535
[:toasts/upsert
3636
{:type :positive
37-
:text (i18n/label :t/trust-mark-removed {:username name})}]}))
37+
:text (i18n/label :t/untrusted-mark-removed)}]}))
3838

3939
(rf/reg-event-fx :contact/remove-trust-status
4040
(fn [_ [contact-id name]]

translations/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@
16201620
"mark-as-untrusted-button": "Mark",
16211621
"mark-as-untrusted-description": "{{username}} will be marked as untrusted. This mark will only be visible to you.",
16221622
"mark-user-untrustworthy": "Mark {{username}} as untrustworthy",
1623-
"marked-as-untrusted": "{{username}} is marked as untrusted",
1623+
"marked-as-untrusted": "Marked as untrusted",
16241624
"market": "Market",
16251625
"market-cap": "Market cap",
16261626
"master-account": "Master account",
@@ -2773,7 +2773,6 @@
27732773
"tribute-to-talk-tribute-received2": " are now contacts and can securely chat with each other.",
27742774
"tribute-to-talk-you-require-snt": "You require SNT for new people to start a chat.",
27752775
"trip-accounts": "Trip accounts",
2776-
"trust-mark-removed": "Trust mark removed for {{username}}",
27772776
"try-again": "Try again",
27782777
"try-keeping-the-card-still": "Try keeping the card still",
27792778
"try-to-search-something-else": "Try to search something else",
@@ -2840,6 +2839,7 @@
28402839
"unsupported-file": "Unsupported file",
28412840
"until": "until",
28422841
"until-you-turn-it-back-on": "you turn it back on",
2842+
"untrusted-mark-removed": "Untrusted mark removed",
28432843
"untrustworthy": "Untrustworthy",
28442844
"update": "Update",
28452845
"update-account-name": "Update account name",

0 commit comments

Comments
 (0)