Skip to content

Commit

Permalink
Changes recommended by coderabbitai
Browse files Browse the repository at this point in the history
  • Loading branch information
tlesicka committed Oct 7, 2024
1 parent 602ea4e commit 331ffdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/desktop-client/src/components/sidebar/BudgetName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function EditableBudgetName() {
const [budgetName, setBudgetNamePref] = useMetadataPref('budgetName');
const [editing, setEditing] = useState(false);
const [menuOpen, setMenuOpen] = useState(false);
const triggerRef = useRef(null);
const triggerRef = useRef<HTMLButtonElement>(null);

function onMenuSelect(type: string) {
setMenuOpen(false);
Expand Down Expand Up @@ -99,7 +99,7 @@ function EditableBudgetName() {
fontWeight: 500,
}}
defaultValue={budgetName}
onEnter={async e => {
onEnter={e => {
const inputEl = e.target as HTMLInputElement;
const newBudgetName = inputEl.value;
if (newBudgetName.trim() !== '') {
Expand Down

0 comments on commit 331ffdb

Please sign in to comment.