diff --git a/packages/desktop-client/src/components/budget/MobileBudgetTable.js b/packages/desktop-client/src/components/budget/MobileBudgetTable.js index 7014bf9899d..9fd0ae8f18b 100644 --- a/packages/desktop-client/src/components/budget/MobileBudgetTable.js +++ b/packages/desktop-client/src/components/budget/MobileBudgetTable.js @@ -134,7 +134,11 @@ function BudgetCell({ } return ( - + e.preventDefault()} + > {editing ? ( ( - + - - {formatter ? formatter(sheetValue) : format(sheetValue, type)} - - - ), - [ - privacyFilter, - type, - style, - getStyle, - fullSheetName, - formatter, - format, - sheetValue, - ], + {formatter ? formatter(sheetValue) : format(sheetValue, type)} + + ); } diff --git a/packages/desktop-client/src/components/util/AmountInput.js b/packages/desktop-client/src/components/util/AmountInput.js index 1e095cd31ae..fc84641206a 100644 --- a/packages/desktop-client/src/components/util/AmountInput.js +++ b/packages/desktop-client/src/components/util/AmountInput.js @@ -28,7 +28,7 @@ export function AmountInput({ let [value, setValue] = useState(initialValueAbsolute); let ref = useRef(); let buttonRef = useRef(); - let mergedRef = useMergedRefs(inputRef, ref); + let mergedInputRef = useMergedRefs(inputRef, ref); function onSwitch() { ref.current?.focus(); @@ -59,13 +59,13 @@ export function AmountInput({ return ( e.preventDefault()} ref={buttonRef} >