Skip to content

Commit 66f884d

Browse files
committed
frontend/send: wipe proposed tx note
Bug: enter send screen, modify note, exit send screen, re-enter send screen. Now the note field is empty but the previously proposed tx note will be used to label the new transaction. Fix: wipe the proposed tx note when leaving the send screen.
1 parent 9ae91a3 commit 66f884d

File tree

1 file changed

+2
-0
lines changed
  • frontends/web/src/routes/account/send

1 file changed

+2
-0
lines changed

frontends/web/src/routes/account/send/send.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ class Send extends Component<Props, State> {
173173
public componentWillUnmount() {
174174
this.unregisterEvents();
175175
unsubscribe(this.unsubscribeList);
176+
// Wipe proposed tx note.
177+
accountApi.proposeTxNote(this.getAccount()!.code, '');
176178
}
177179

178180
private registerEvents = () => document.addEventListener('keydown', this.handleKeyDown);

0 commit comments

Comments
 (0)