Skip to content

Commit 148c43a

Browse files
authored
Update finance.hooks.ts
Changed mutation type to Vendor
1 parent b35dcc6 commit 148c43a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frontend/src/hooks/finance.hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export const useCreateAccountCode = () => {
369369
*/
370370
export const useCreateVendor = () => {
371371
const queryClient = useQueryClient();
372-
return useMutation<{ message: string }, Error, { name: string }>(
372+
return useMutation<Vendor, Error, { name: string }>(
373373
['vendors', 'create'],
374374
async (vendorData: { name: string }) => {
375375
const { data } = await createVendor(vendorData);

0 commit comments

Comments
 (0)