mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
REF: fs
This commit is contained in:
parent
4c51b791fb
commit
c4cf3d2244
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ const showImagePickerAndReadImage = () => {
|
|||
},
|
||||
response => {
|
||||
if (!response.didCancel) {
|
||||
const asset = response?.assets?.[0] ?? {};
|
||||
const asset = response.assets?.[0] ?? {};
|
||||
if (asset.uri) {
|
||||
const uri = asset.uri.toString().replace('file://', '');
|
||||
LocalQRCode.decode(uri, (error: any, result: string) => {
|
||||
|
@ -165,7 +165,7 @@ const showFilePickerAndReadFile = async function (): Promise<{ data: string | fa
|
|||
return { data: file, uri: decodeURI(res.fileCopyUri) };
|
||||
}
|
||||
|
||||
if (res?.type === DocumentPicker.types.images || res?.type?.startsWith('image/')) {
|
||||
if (res.type === DocumentPicker.types.images || res.type?.startsWith('image/')) {
|
||||
return new Promise(resolve => {
|
||||
if (!res.fileCopyUri) {
|
||||
// to make ts happy, should not need this check here
|
||||
|
|
Loading…
Add table
Reference in a new issue