fix: UI toast typo (#13026)

* fix: UI toast typo

* translate

* fix error msg
This commit is contained in:
Daniel Vaz Gaspar
2021-02-10 08:17:54 +00:00
committed by GitHub
parent b3a814fa27
commit 3e0681b438
4 changed files with 19 additions and 13 deletions

View File

@@ -302,11 +302,11 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
.then(() => {
setDB(dbFetched);
})
.catch(e =>
.catch(errMsg =>
addDangerToast(
t(
'Sorry there was an error fetching database information: %s',
e.message,
errMsg.message,
),
),
);