Skip to content

Commit

Permalink
GUI - Fix condition for promise detection in a11y (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZycaR committed Apr 29, 2024
1 parent 18fcb80 commit 74ee821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/utils/a11y.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function waitUntil(
tries?: number
): Promise<void> {
return new Promise((resolve, rej) => {
const isPromise = typeof condition() === 'boolean';
const isPromise = typeof condition() !== 'boolean';
const interval = setInterval(() => {
if (tries && --tries === 0) {
error(new Error('waitUntil ran out of tries'));
Expand Down

0 comments on commit 74ee821

Please sign in to comment.