Changing event listener to only register once when deleting waiting list entries

This commit is contained in:
Collin Duncan 2024-04-02 14:15:01 +02:00
parent 7d6b45032b
commit bac0e3971d
No known key found for this signature in database

View file

@ -336,7 +336,7 @@ export class BaanReserverenService {
}
const acceptedDialogPromise = new Promise<void>((res, rej) => {
this.page.on('dialog', async (dialog) => {
this.page.once('dialog', async (dialog) => {
await dialog.accept().catch(rej)
res()
})