mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix(InvoiceForm): control display exchange rate input for foreign customers.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { useCallback } from "react";
|
||||
import { useDispatch } from "react-redux";
|
||||
import { useSelector, useDispatch } from "react-redux";
|
||||
import { setOrganizations } from 'store/organizations/organizations.actions';
|
||||
import { getCurrentOrganizationFactory } from 'store/authentication/authentication.selectors';
|
||||
|
||||
export const useSetOrganizations = () => {
|
||||
const dispatch = useDispatch();
|
||||
@@ -8,4 +9,8 @@ export const useSetOrganizations = () => {
|
||||
return useCallback((organizations) => {
|
||||
dispatch(setOrganizations(organizations))
|
||||
}, [dispatch]);
|
||||
};
|
||||
|
||||
export const useCurrentOrganization = () => {
|
||||
return useSelector(getCurrentOrganizationFactory())
|
||||
};
|
||||
Reference in New Issue
Block a user