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:
icarus 2025-12-13 00:58:31 +08:00
parent a29b0ef9df
commit cfee61836f
No known key found for this signature in database
GPG Key ID: D4AF089AAEC25D18

View File

@ -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