formatting
This commit is contained in:
@@ -16,7 +16,7 @@ const defaultOptions = {
|
||||
};
|
||||
|
||||
const useRequest = (initOptions) => {
|
||||
const { logout } = useAuth()
|
||||
const { logout } = useAuth();
|
||||
|
||||
const _options = Object.assign({}, defaultOptions, initOptions);
|
||||
|
||||
@@ -38,7 +38,8 @@ const useRequest = (initOptions) => {
|
||||
errorResponse(
|
||||
error.response,
|
||||
mergedOptions.notification.show && mergedOptions.notification.failed,
|
||||
"request_data", logout
|
||||
"request_data",
|
||||
logout
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user