Skip to content

Commit 4a2813d

Browse files
wanziforeverTheLastCicada
authored andcommitted
fix: await call for callback function in datalayer.getStoreData
1 parent b5bc8b0 commit 4a2813d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/datalayer/syncService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const getStoreData = async (storeId, callback, onFail, rootHash, retry = 0) => {
234234

235235
const decodedData = decodeDataLayerResponse(encodedData);
236236

237-
callback(decodedData);
237+
await callback(decodedData);
238238
} catch (error) {
239239
logger.error(error.message);
240240
onFail(error.message);

0 commit comments

Comments
 (0)