mozrest-sdk-react-dev 0.2.31 → 0.2.32
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/mozrest-sdk.es.js +2 -2
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -85359,12 +85359,12 @@ const BingButton$1 = ({
|
|
|
85359
85359
|
}, t2("CONNECT")));
|
|
85360
85360
|
};
|
|
85361
85361
|
const useConnect = ({ venueId }) => {
|
|
85362
|
-
var _a2;
|
|
85362
|
+
var _a2, _b;
|
|
85363
85363
|
const { data: data2, isLoading, reload } = useFetch(GetVenueListingModule, {
|
|
85364
85364
|
cacheId: `module-${venueId}`,
|
|
85365
85365
|
venueId
|
|
85366
85366
|
});
|
|
85367
|
-
const activeModules = (_a2 = data2 == null ? void 0 : data2.data.map(({ module: module2 }) => module2.name)) != null ?
|
|
85367
|
+
const activeModules = (_b = (_a2 = data2 == null ? void 0 : data2.data) == null ? void 0 : _a2.map(({ module: module2 }) => module2.name)) != null ? _b : [];
|
|
85368
85368
|
const FacebookConnected = activeModules.includes("Facebook");
|
|
85369
85369
|
const GoogleConnected = activeModules.includes("Google");
|
|
85370
85370
|
const BingConnected = activeModules.includes("Bing");
|