fix: organization lock base currency field.

This commit is contained in:
a.bouhuolia
2021-09-09 21:05:18 +02:00
parent 4b5aa3d898
commit 772c24e3ef
3 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
import { defaultFastFieldShouldUpdate } from 'utils';
export const shouldBaseCurrencyUpdate = (newProps, oldProps) => {
return (
newProps.baseCurrencyDisabled !== oldProps.baseCurrencyDisabled ||
defaultFastFieldShouldUpdate(newProps, oldProps)
);
};