From 2f370eff43d9af38b54c32fbede52a213da1e422 Mon Sep 17 00:00:00 2001 From: Sergey Ratiashvili Date: Tue, 14 Dec 2021 15:11:13 +0300 Subject: [PATCH] chore: rename --- src/Encoder/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Encoder/index.ts b/src/Encoder/index.ts index 53f930a..0e3bbc4 100644 --- a/src/Encoder/index.ts +++ b/src/Encoder/index.ts @@ -211,11 +211,11 @@ const encode = async () => { await addLog(`Creating qrs...`); setGifProgress(10); - const fileredChunks = exactFrames.length + const filteredChunks = exactFrames.length ? chunks.filter((_, index) => exactFrames.includes(index)) : chunks; - if (!fileredChunks.length) { + if (!filteredChunks.length) { await addLog(`😖 No frames to include into gif`); setGifProgress(undefined); return; @@ -225,7 +225,7 @@ const encode = async () => { IMAGE_SIZE, "neuquant", false, - fileredChunks.length + filteredChunks.length ); encoder.start(); encoder.setRepeat(0); @@ -234,7 +234,7 @@ const encode = async () => { }); encoder.setDelay(frameDuration * 1000); await Promise.all( - fileredChunks.map(({ chunk, index }) => { + filteredChunks.map(({ chunk, index }) => { return createQR(chunk, { index: index, total: chunks.length,