Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update usePreflightTest.ts
The callback function should return a promise on both cases
  • Loading branch information
AssafSignNow authored May 10, 2023
commit d013af75addb8f6c5041ff131c68ac54d6d2be56
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function usePreflightTest(dispatch: React.Dispatch<ACTIONTYPE>) {
const startPreflightTest = useCallback(() => {
// Don't start a new preflight test if one is already running
if (preflightTestRef.current) {
return;
return Promise.resolve();
}

dispatch({ type: 'preflight-started' });
Expand Down