feat(qucikpayment):add exchange rate muted & branch.

This commit is contained in:
elforjani13
2022-03-07 20:46:48 +02:00
parent 87a56dcd95
commit 2501626d70
7 changed files with 31 additions and 56 deletions

View File

@@ -47,10 +47,3 @@ export const useSetPrimaryBranchToForm = () => {
}
}, [isBranchesSuccess, setFieldValue, branches]);
};
export const useForeignAccount = () => {
const { values } = useFormikContext();
const { baseCurrency } = useQuickPaymentMadeContext();
return !isEqual(baseCurrency, values.currency_code);
};