timelock-sdk 0.0.25 → 0.0.26

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/dist/client.cjs CHANGED
@@ -472,7 +472,7 @@ const useUserOptions = (user, active = false) => {
472
472
  enabled: !!user && !!graphqlClient
473
473
  });
474
474
  return {
475
- data: (0, react.useMemo)(() => (options === null || options === void 0 ? void 0 : options.sort((a, b) => b.createdAt.getTime() - a.createdAt.getTime())) || [], [options]),
475
+ data: (0, react.useMemo)(() => [...options || []].sort((a, b) => b.createdAt.getTime() - a.createdAt.getTime()), [options]),
476
476
  ...rest
477
477
  };
478
478
  };