From ddb0d6540e7b8e44b273021367f431f1f8e1609a Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Tue, 14 Jul 2020 14:12:00 -0400 Subject: [PATCH] Fixed typo in decodeB64StringToArrayBuffer --- helpers/utils/b64.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/utils/b64.js b/helpers/utils/b64.js index 8155c4fdf..51869b6d2 100644 --- a/helpers/utils/b64.js +++ b/helpers/utils/b64.js @@ -1,5 +1,5 @@ export const decodeB64StringToArrayBuffer = (input) => { - const bytes = Math.floor((input / 4) * 3) + const bytes = Math.floor((input.length / 4) * 3) const ab = new ArrayBuffer(bytes) const uarray = new Uint8Array(ab)