Skip to content

Commit b3919cb

Browse files
authored
fix: add missing arrow operator in onProgress callback function (#8379)
* fix: add missing arrow operator in onProgress callback function * update copy file snippet error handling * revert dart syntax change
1 parent 71b6027 commit b3919cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/[platform]/build-a-backend/storage/copy-files/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const copyFile = async () => {
101101
}
102102
});
103103
} catch (error) {
104-
console.error('Error', err);
104+
console.error('Error', error);
105105
}
106106
};
107107
```

src/pages/[platform]/build-a-backend/storage/download-files/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ const { body, eTag } = await downloadData(
707707
{
708708
path: 'album/2024/1.jpg',
709709
options: {
710-
onProgress: (progress) {
710+
onProgress: (progress) => {
711711
console.log(`Download progress: ${(progress.transferredBytes/progress.totalBytes) * 100}%`);
712712
}
713713
}

0 commit comments

Comments
 (0)