dce-reactkit 3.3.3-beta.1 → 3.3.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.3.3-beta.1",
3
+ "version": "3.3.3-beta.2",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -56,15 +56,15 @@ let storedSendRequest: SendRequestFunction;
56
56
  * @returns sendRequest function
57
57
  */
58
58
  export const getSendRequest = async () => {
59
- // Wait for initialization or timeout
59
+ // Track timeout
60
60
  let timedOut = false;
61
- await Promise.all([
62
- (async () => {
63
- await waitMs(5000);
64
- timedOut = true;
65
- })(),
66
- initialized,
67
- ]);
61
+ (async () => {
62
+ await waitMs(5000);
63
+ timedOut = true;
64
+ })(),
65
+
66
+ // Wait for initialization
67
+ await initialized;
68
68
 
69
69
  // Error if no send request function
70
70
  if (timedOut) {