feat: handle transactions locking request error.

This commit is contained in:
a.bouhuolia
2021-12-14 18:03:58 +02:00
parent ae7d37a0e0
commit eebe4c46fa
8 changed files with 47 additions and 30 deletions

View File

@@ -53,9 +53,11 @@ function GlobalErrors({
);
}
if (globalErrors.transactionsLocked) {
const lockedToDate =
globalErrors.transactionsLocked.formatted_locked_to_date;
AppToaster.show({
message:
'Transactions before 13 Dec 2021 has been locked. Hence action cannot be performed.',
message: `Transactions before ${lockedToDate} has been locked. Hence action cannot be performed.`,
intent: Intent.DANGER,
onDismiss: () => {
globalErrorsSet({ transactionsLocked: false });