Fix toast bug

This commit is contained in:
Jacky Lai 2025-02-23 13:29:26 -05:00
parent 3fdc014367
commit 3501790343
No known key found for this signature in database
GPG Key ID: 362C22DB0752BDA7

View File

@ -59,7 +59,7 @@ class LetterboxdCmd extends TemplateUiCommand {
async onFormSubmit(value: Record<string, any>): Promise<void> {
await kv.set(USERNAME_KEY, value['clear-username'] ? '' : value.username)
this.currentLetterboxdUsername = value.username
toast.success("Letterboxd username " + value['clear-username'] ? 'removed.' : `set to: ${value.username}`)
toast.success(`Letterboxd username ${value['clear-username'] ? 'removed' : 'set to ' + value.username}.`)
this.load()
}
async load() {