mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat: handle transactions locking request error.
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user