Compare commits
31 Commits
2f3fd2dacf
...
7b39ee59f4
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b39ee59f4 | |||
| 3d847444bb | |||
| 303420409c | |||
| 00d91ad8dd | |||
| fb865cbe4f | |||
| d34fadfc6d | |||
| 3424c79594 | |||
| dce477f6cd | |||
| b1fa01e2c9 | |||
| 007b08f335 | |||
| 9bc5f84c83 | |||
| 0944a8d78c | |||
| 22ef95d6b7 | |||
| 6b830c5063 | |||
| ca2ed451d8 | |||
| d78f90f700 | |||
| 182ae887d8 | |||
| 24d7bd52d2 | |||
| 2122d7e959 | |||
| e388906b80 | |||
| e1f5bb8baf | |||
| 9df4b20ff0 | |||
| bd1dabdd68 | |||
| 945d5b1546 | |||
| ce66c137aa | |||
| fca24d4081 | |||
| 977ab05e61 | |||
| bc6e66b25c | |||
| e5d97e3105 | |||
| b1586a8cfb | |||
| de7ca102fd |
@ -107,6 +107,9 @@ export const useUpdateExpense = (onSuccessCallBack) => {
|
|||||||
|
|
||||||
if (onSuccessCallBack) onSuccessCallBack();
|
if (onSuccessCallBack) onSuccessCallBack();
|
||||||
},
|
},
|
||||||
|
onError:(error)=>{
|
||||||
|
showToast( "Something went wrong.Please try again later.", "error");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -157,7 +160,7 @@ export const useActionOnExpense = (onSuccessCallBack) => {
|
|||||||
},
|
},
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
showToast(
|
showToast(
|
||||||
error.message || "Something went wrong, please try again!",
|
error.message || "Something went wrong.Please try again later.",
|
||||||
"error"
|
"error"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@ -189,7 +192,7 @@ export const useDeleteExpense = () => {
|
|||||||
showToast(data.message || "Expense deleted successfully", "success");
|
showToast(data.message || "Expense deleted successfully", "success");
|
||||||
},
|
},
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
showToast("Failed to delete expense", "error");
|
showToast(error.message || error.response.message || "Something went wrong.Please try again later.", "error");
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user