We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b35dcc6 commit 148c43aCopy full SHA for 148c43a
1 file changed
src/frontend/src/hooks/finance.hooks.ts
@@ -369,7 +369,7 @@ export const useCreateAccountCode = () => {
369
*/
370
export const useCreateVendor = () => {
371
const queryClient = useQueryClient();
372
- return useMutation<{ message: string }, Error, { name: string }>(
+ return useMutation<Vendor, Error, { name: string }>(
373
['vendors', 'create'],
374
async (vendorData: { name: string }) => {
375
const { data } = await createVendor(vendorData);
0 commit comments