Skip to content

Commit

Permalink
change: update message and log level
Browse files Browse the repository at this point in the history
  • Loading branch information
b-avb committed Oct 25, 2024
1 parent ebfcf18 commit 46f7c7c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@
"title": "⚠️Attention: This information is for you",
"middleware": {
"has_dao": "We're sorry! 😞 You cannot create more organizations associated with this account.",
"chain_unavailable": "At this time, it is not possible to complete this action."
"chain_unavailable": "At this time, it is not possible to complete this action.",
"signer_not_found": "We're sorry! 😞 You cannot perform this action, you must authenticate first."
}
},
"utils": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@
"title": "⚠️Atención: Está información es para ti",
"middleware": {
"has_dao": "¡Lo sentimos! 😞 No puedes crear más organizaciones asociadas a esta cuenta.",
"chain_unavailable": "En este momento no es posible completar está acción."
"chain_unavailable": "En este momento no es posible completar está acción.",
"signer_not_found": "¡Lo sentimos! 😞 No puedes realizar esta acción, primero debes autenticarte."
}
},
"errors": {
Expand Down
4 changes: 2 additions & 2 deletions src/middlewares/is_signer_ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ pub fn is_signer_ready(
) -> impl FnOnce() -> Result<(), &'static str> {
move || {
if accounts.get_account().is_none() {
notification.handle_warning(&translate!(i18, "warnings.middleware.has_dao"));
notification.handle_warning(&translate!(i18, "warnings.middleware.signer_not_found"));
Err("Failed to get account to sign")
} else {
log::warn!("Signer is ready");
log::debug!("Signer is ready");
Ok(())
}
}
Expand Down

0 comments on commit 46f7c7c

Please sign in to comment.