mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
Update SaveFileButton.tsx
This commit is contained in:
parent
ecbd200d51
commit
2e45913bc1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue