fix: Save Account Notes (#5326)

* replace static function with useCallback

occasionally if you are editing the notes of an account and then open another account from the sidebar without first closing the popover, the note would be saved to both the current and previously opened account.

* reset tempNote on id change

* save notes only if changes are made

Previously, the notes were being saved unconditionally when closing the Notes modal. This update ensures that the save action is triggered only if the temporary notes differ from the existing note, reducing unnecessary events.
This commit is contained in:
passabilities.eth
2025-07-18 13:00:26 -05:00
committed by GitHub
parent e4a993ad67
commit 5db7026435
2 changed files with 22 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [passabilities]
---
fixes saving correct account notes when opening another account