mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
Merge branch 'develop' into fix-spelling-a-char
This commit is contained in:
@@ -60,6 +60,9 @@ export default function useApiRequest() {
|
||||
if (status === 403) {
|
||||
setGlobalErrors({ access_denied: true });
|
||||
}
|
||||
if (status === 429) {
|
||||
setGlobalErrors({ too_many_requests: true });
|
||||
}
|
||||
if (status === 400) {
|
||||
const lockedError = data.errors.find(
|
||||
(error) => error.type === 'TRANSACTIONS_DATE_LOCKED',
|
||||
|
||||
Reference in New Issue
Block a user