From 7f2798a94a8be8f08f24293a64e35cd77d3460ff Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Tue, 23 Aug 2022 13:08:48 +0500 Subject: [PATCH 1/2] fixed draft save fail toast message issue --- src/screens/editor/container/editorContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/editor/container/editorContainer.tsx b/src/screens/editor/container/editorContainer.tsx index 75417379a..c19b18e4d 100644 --- a/src/screens/editor/container/editorContainer.tsx +++ b/src/screens/editor/container/editorContainer.tsx @@ -373,7 +373,7 @@ class EditorContainer extends Component { const { beneficiariesMap, currentAccount } = this.props; return beneficiariesMap[draftId || TEMP_BENEFICIARIES_ID] - || { account: currentAccount.name, weight: 10000 }; + || [{ account: currentAccount.name, weight: 10000 }]; } _handleRoutingAction = (routingAction) => { From 241672948bb84fdcbaa4a1cc6d6d9749bb9a5736 Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Tue, 23 Aug 2022 13:10:45 +0500 Subject: [PATCH 2/2] added bugsnag event notifiers on vote failure --- src/providers/hive/dhive.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/providers/hive/dhive.js b/src/providers/hive/dhive.js index 6b6c9e244..be25ef2d3 100644 --- a/src/providers/hive/dhive.js +++ b/src/providers/hive/dhive.js @@ -817,6 +817,7 @@ const _vote = (currentAccount, pin, author, permlink, weight) => { resolve(result.result); }) .catch((err) => { + bugsnagInstance.notify(err); reject(err); }); }); @@ -847,6 +848,7 @@ const _vote = (currentAccount, pin, author, permlink, weight) => { if (err && get(err, 'jse_info.code') === 4030100) { err.message = getDsteemDateErrorMessage(err); } + bugsnagInstance.notify(err); reject(err); }); });