@layerfi/components 0.1.21 → 0.1.22

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/esm/index.js CHANGED
@@ -9488,8 +9488,10 @@ var LayerProvider = ({
9488
9488
  }
9489
9489
  }, [businessAccessToken, auth?.access_token]);
9490
9490
  useSWR9(
9491
- businessId && auth?.access_token && `categories-${businessId}`,
9492
- Layer.getCategories(apiUrl, auth?.access_token, { params: { businessId } }),
9491
+ businessId && state.auth?.access_token && `categories-${businessId}`,
9492
+ Layer.getCategories(apiUrl, state.auth?.access_token, {
9493
+ params: { businessId }
9494
+ }),
9493
9495
  {
9494
9496
  ...defaultSWRConfig,
9495
9497
  onSuccess: (response) => {
@@ -9503,8 +9505,10 @@ var LayerProvider = ({
9503
9505
  }
9504
9506
  );
9505
9507
  useSWR9(
9506
- businessId && auth?.access_token && `business-${businessId}`,
9507
- Layer.getBusiness(apiUrl, auth?.access_token, { params: { businessId } }),
9508
+ businessId && state?.auth?.access_token && `business-${businessId}`,
9509
+ Layer.getBusiness(apiUrl, state?.auth?.access_token, {
9510
+ params: { businessId }
9511
+ }),
9508
9512
  {
9509
9513
  ...defaultSWRConfig,
9510
9514
  onSuccess: (response) => {