mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 20:12:38 +08:00
fix: remove outdated toast comment and cleanup code
The toast component now supports programmatic closing, making the TODO comment obsolete. Clean up the code by removing the unnecessary comment.
This commit is contained in:
parent
a29b0ef9df
commit
cfee61836f
@ -83,7 +83,6 @@ export async function checkDataLimit() {
|
||||
}
|
||||
currentInterval = setInterval(check, CHECK_INTERVAL_WARNING)
|
||||
} else if (!shouldShowWarning && currentToastId) {
|
||||
// TODO: new toast component cannot be closed programmatically. add a dismiss button in the toast.
|
||||
window.toast.close(currentToastId)
|
||||
currentToastId = null
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user