diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components')
-rw-r--r-- | packages/merchant-backoffice-ui/src/components/form/InputImage.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/form/InputImage.tsx b/packages/merchant-backoffice-ui/src/components/form/InputImage.tsx index 43a7af1a3..4e4031c6a 100644 --- a/packages/merchant-backoffice-ui/src/components/form/InputImage.tsx +++ b/packages/merchant-backoffice-ui/src/components/form/InputImage.tsx @@ -86,7 +86,7 @@ export function InputImage<T>({ } setSizeError(false); return f[0].arrayBuffer().then((b) => { - const b64 = btoa( + const b64 = window.btoa( new Uint8Array(b).reduce( (data, byte) => data + String.fromCharCode(byte), "", |