Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 91b53fd

Browse files
feat: export entry to data.json
1 parent 37a6e53 commit 91b53fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/download.utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ const zip = async ({assets, data}: {assets: UserAsset[]; data: FileImportData}):
6666
});
6767
};
6868

69-
const addDeckMetaZip = (deck: FileImportData) => {
70-
const blob: Blob = new Blob([JSON.stringify(deck)], {type: 'application/json'});
69+
const addDataMetaZip = (data: FileImportData) => {
70+
const blob: Blob = new Blob([JSON.stringify(data)], {type: 'application/json'});
7171

72-
zip.file('deck.json', blob, {
72+
zip.file('data.json', blob, {
7373
base64: true
7474
});
7575
};
@@ -85,7 +85,7 @@ const zip = async ({assets, data}: {assets: UserAsset[]; data: FileImportData}):
8585
const imagePromises: Promise<void>[] = assets.map((userAsset: UserAsset) => addImageZip(userAsset));
8686
await Promise.all(imagePromises);
8787

88-
addDeckMetaZip(data);
88+
addDataMetaZip(data);
8989

9090
addAssetMetaZip(assets);
9191

0 commit comments

Comments
 (0)