feat: optimize transactions locking.

This commit is contained in:
a.bouhuolia
2021-12-13 19:22:56 +02:00
parent 0ee9b54a9b
commit a52f00eeb2
9 changed files with 103 additions and 48 deletions

View File

@@ -52,6 +52,16 @@ function GlobalErrors({
toastKeySomethingWrong,
);
}
if (globalErrors.transactionsLocked) {
AppToaster.show({
message:
'Transactions before 13 Dec 2021 has been locked. Hence action cannot be performed.',
intent: Intent.DANGER,
onDismiss: () => {
globalErrorsSet({ transactionsLocked: false });
},
});
}
return null;
}