change(ui): fix mob req intercept
This commit is contained in:
parent
f5cf2c48ca
commit
ae4bb03c66
1 changed files with 8 additions and 6 deletions
|
|
@ -76,6 +76,11 @@ function CreateNote({
|
|||
|
||||
const duration = Duration.fromMillis(time).toFormat('mm:ss');
|
||||
|
||||
const cleanUp = () => {
|
||||
setCreateNoteTooltip({ isVisible: false, time: 0 });
|
||||
setText('');
|
||||
setTag(undefined);
|
||||
}
|
||||
const onSubmit = () => {
|
||||
if (text === '') return;
|
||||
|
||||
|
|
@ -108,9 +113,7 @@ function CreateNote({
|
|||
console.error(e);
|
||||
})
|
||||
.finally(() => {
|
||||
setCreateNoteTooltip({ isVisible: false, time: 0 });
|
||||
setText('');
|
||||
setTag(undefined);
|
||||
cleanUp()
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -128,13 +131,12 @@ function CreateNote({
|
|||
console.error(e);
|
||||
})
|
||||
.finally(() => {
|
||||
setCreateNoteTooltip({ isVisible: false, time: 0 });
|
||||
setText('');
|
||||
setTag(undefined);
|
||||
cleanUp()
|
||||
});
|
||||
};
|
||||
|
||||
const closeTooltip = () => {
|
||||
cleanUp()
|
||||
setCreateNoteTooltip({ isVisible: false, time: 100 });
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue