Skip to content

Commit 41f531e

Browse files
committed
TransactionDetails.fetchTransaction() now post a toast in case of error.
Signed-off-by: Eric Le Ponner <eric.leponner@icloud.com>
1 parent b206307 commit 41f531e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

front-end/src/renderer/pages/TransactionDetails/TransactionDetails.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
computeSignatureKey,
3131
getAccountIdWithChecksum,
3232
getAccountNicknameFromId,
33+
getErrorMessage,
3334
getStatusFromCode,
3435
getUInt8ArrayFromBytesString,
3536
hexToUint8Array,
@@ -54,6 +55,10 @@ import TransactionId from '@renderer/components/ui/TransactionId.vue';
5455
import ExpiringBadge from '@renderer/pages/TransactionDetails/components/ExpiringBadge.vue';
5556
import useNotificationsStore from '@renderer/stores/storeNotifications.ts';
5657
import { PublicKeyOwnerCache } from '@renderer/caches/backend/PublicKeyOwnerCache.ts';
58+
import { ToastManager } from '@renderer/utils/ToastManager.ts';
59+
60+
/* Injectables */
61+
const toastManager = ToastManager.inject();
5762
5863
/* Stores */
5964
const user = useUserStore();
@@ -225,8 +230,9 @@ async function fetchTransaction() {
225230
publicKeyOwnerCache,
226231
user.selectedOrganization,
227232
);
228-
} catch {
233+
} catch (error) {
229234
signatureKeyObject.value = null;
235+
toastManager.error(getErrorMessage(error, 'Failed to compute signature key'));
230236
}
231237
}
232238

0 commit comments

Comments
 (0)