diff options
author | Sebastian <sebasjm@gmail.com> | 2023-02-08 17:39:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-02-08 17:39:39 -0300 |
commit | 603efbd073a2a9aa56f801fe57d13f060821b05d (patch) | |
tree | 9ca8367dbbe6e47b2a11ac67bbc2747298fcd255 /packages/merchant-backoffice-ui/src/components/form/InputImage.tsx | |
parent | be01d1479cf650fe8eb0c8e567620abfa4544e1e (diff) | |
download | wallet-core-603efbd073a2a9aa56f801fe57d13f060821b05d.tar.xz |
use request api from web-util
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components/form/InputImage.tsx')
-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), "", |