mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
FIX: Dont show alert if user cancels willingly
This commit is contained in:
parent
b3fb057dd7
commit
6e368d66f7
2 changed files with 5 additions and 1 deletions
|
@ -14,10 +14,13 @@ const _shareOpen = async (filePath: string) => {
|
|||
return await Share.open({
|
||||
url: 'file://' + filePath,
|
||||
saveToFiles: isDesktop,
|
||||
// @ts-ignore: Website claims this propertie exists, but TS cant find it. Send anyways.
|
||||
useInternalStorage: Platform.OS === 'android',
|
||||
failOnCancel: false,
|
||||
})
|
||||
.catch(error => {
|
||||
presentAlert({ message: error.message });
|
||||
console.log(error);
|
||||
presentAlert({ message: error.message });
|
||||
})
|
||||
.finally(() => {
|
||||
RNFS.unlink(filePath);
|
||||
|
|
|
@ -358,6 +358,7 @@ const WalletDetails = () => {
|
|||
Share.open({
|
||||
url: 'file://' + filePath,
|
||||
saveToFiles: isDesktop,
|
||||
failOnCancel: false,
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
|
|
Loading…
Add table
Reference in a new issue