From 9d6828d7f6238e822c1c35e5b11ea6da8789a2db Mon Sep 17 00:00:00 2001 From: Phumrapee Limpianchop Date: Sat, 15 Apr 2023 02:26:04 +0900 Subject: [PATCH] fix: condition --- src/core/services/getBlurImage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/services/getBlurImage.ts b/src/core/services/getBlurImage.ts index 51c5c21..26f7a64 100644 --- a/src/core/services/getBlurImage.ts +++ b/src/core/services/getBlurImage.ts @@ -59,7 +59,7 @@ export const getBlurImage = async (image: Asset, attempt = 1): Promise 2) { + if (attempt < 2) { console.log(`attempt #${attempt} failed! performing attempt #${attempt + 1} in 10 seconds`) await new Promise(r => setTimeout(r, 10000))