@scallop-io/sui-scallop-sdk 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -264,6 +264,9 @@ class ScallopSuiKit extends ScallopQueryClient {
264
264
  queryKey,
265
265
  });
266
266
  prevDatas.forEach(([key, prevData]) => {
267
+ if (!prevData) {
268
+ prevData = { data: prevData };
269
+ }
267
270
  this.queryClient.setQueryData(
268
271
  key,
269
272
  deepMergeObject(prevData, { data: result, error: null }),