From 2f41ed50c198b2952b1af50de55df2f19d645033 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 13 Jul 2018 16:47:32 +0200 Subject: Switch conditional --- packages/utils/src/fetchAsync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/src/fetchAsync.ts b/packages/utils/src/fetchAsync.ts index 47d87815e..8295ff5ec 100644 --- a/packages/utils/src/fetchAsync.ts +++ b/packages/utils/src/fetchAsync.ts @@ -7,7 +7,7 @@ export const fetchAsync = async ( timeoutMs: number = 20000, ): Promise => { let optionsWithAbortParam; - if (isNode) { + if (!isNode) { const controller = new AbortController(); const signal = controller.signal; setTimeout(() => { -- cgit