diff --git a/src/locales/en-US.json b/src/locales/en-US.json index f1ff8c2..4d11067 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -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": { diff --git a/src/locales/es-ES.json b/src/locales/es-ES.json index 5f355a8..faa0fcc 100644 --- a/src/locales/es-ES.json +++ b/src/locales/es-ES.json @@ -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": { diff --git a/src/middlewares/is_signer_ready.rs b/src/middlewares/is_signer_ready.rs index 1aaef41..11b6971 100644 --- a/src/middlewares/is_signer_ready.rs +++ b/src/middlewares/is_signer_ready.rs @@ -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(()) } }