catch
This commit is contained in:
@@ -146,6 +146,11 @@ export const PayoutListPage = () => {
|
||||
&& rs.nextCursor !== pageParam.cursor
|
||||
&& rs.content.length === DEFAULT_PAGE_PARAM.size
|
||||
);
|
||||
}).catch((e: any) => {
|
||||
if(e.response?.data?.error?.message){
|
||||
showAlert(e.response?.data?.error?.message);
|
||||
return;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -167,6 +172,11 @@ export const PayoutListPage = () => {
|
||||
};
|
||||
extensionPayoutExcel(params).then((rs: ExtensionPayoutExcelResponse) => {
|
||||
console.log('Excel Download Status:', rs);
|
||||
}).catch((e: any) => {
|
||||
if(e.response?.data?.error?.message){
|
||||
showAlert(e.response?.data?.error?.message);
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
setEmailBottomSheetOn(false);
|
||||
|
||||
Reference in New Issue
Block a user