mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
Update SaveFileButton.tsx
This commit is contained in:
parent
ecbd200d51
commit
2e45913bc1
@ -38,7 +38,7 @@ const SaveFileButton: React.FC<SaveFileButtonProps> = ({
|
||||
const action = actions.find(a => a.id === actionId);
|
||||
|
||||
if (action?.id === 'save') {
|
||||
await fs.writeFileAndExport(fileName, fileContent, false, Platform.OS !== 'android').finally(() => {
|
||||
await fs.writeFileAndExport(fileName, fileContent, Platform.OS !== 'android').finally(() => {
|
||||
afterOnPress?.(); // Safely call afterOnPress if it exists
|
||||
});
|
||||
} else if (action?.id === 'share') {
|
||||
|
Loading…
Reference in New Issue
Block a user