Skip to content

Commit b5bf7ac

Browse files
authored
Merge pull request #1057 from singnet/users-development
Users development
2 parents fc10d0a + 33b5d7c commit b5bf7ac

File tree

5 files changed

+9
-18
lines changed

5 files changed

+9
-18
lines changed

public/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"short_name": "SingularityNET Beta Dapp",
3-
"name": "SingularityNET Beta Dapp",
2+
"short_name": "SingularityNET AI Merketplace",
3+
"name": "SingularityNET AI Merketplace",
44
"icons": [
55
{
66
"src": "favicon.ico",

src/App.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const App = () => {
6161

6262
useEffect(() => {
6363
dispatch(userActions.fetchUserDetails());
64-
dispatch(userActions.getIsTermsAcceptedInfo());
64+
isLoggedIn && dispatch(userActions.getIsTermsAcceptedInfo());
6565
}, [dispatch]);
6666

6767
const Loader = () => {
@@ -170,17 +170,7 @@ const App = () => {
170170
/>
171171
}
172172
/>
173-
<Route
174-
path="/"
175-
element={
176-
<PrivateRoute
177-
isAllowed={isLoggedInAndTermsAccepted}
178-
component={withInAppWrapper(AiMarketplace)}
179-
redirectTo={`/${Routes.ONBOARDING}`}
180-
path="/"
181-
/>
182-
}
183-
/>
173+
<Route path="/" Component={withInAppWrapper(AiMarketplace)} />
184174
<Route path={`/${Routes.AI_REQUEST_FORM}`} Component={AiRequestForm} />
185175
<Route path={`/${Routes.GET_STARTED}`} Component={withInAppWrapper(GetStarted)} />
186176
<Route path="*" Component={PageNotFound} />

src/Redux/actionCreators/ServiceActions.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ export const fetchUserOrganizationsList = () => async (dispatch) => {
4242

4343
const onlyUserOrgsFilter = () => async (dispatch) => {
4444
const userOrganizations = await dispatch(fetchUserOrganizationsList());
45-
const userOrganizationsId = userOrganizations.data.map((organization) => organization.orgId);
46-
const filterObj = { orgId: [...userOrganizationsId, process.env.REACT_APP_EXAMPLE_SERVICE_ORG_ID] };
45+
const userOrganizationsId = userOrganizations.data.map((organization) => organization.org_id);
46+
const filterObj = { orgId: userOrganizationsId };
47+
4748
return filterObj;
4849
};
4950

src/components/AiMarketplace/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import PromoComponent from "../PromoComponent";
66
import { Helmet } from "react-helmet";
77

88
const seoData = {
9-
title: "SingularityNET Beta Dapp",
9+
title: "SingularityNET AI Merketplace",
1010
description: `The SingularityNET Marketplace hosts AI services. Services offer free calls to try before you use ${process.env.REACT_APP_TOKEN_NAME} or Paypal to purchase`,
1111
image: `${process.env.REACT_APP_SNET_CDN}/dapp/assets/images/SEO/singularitynet-marketplace.png`,
1212
twitterImage: `${process.env.REACT_APP_SNET_CDN}/dapp/assets/images/SEO/singularitynet-marketplace-twitter.png`,

src/components/GetStarted/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useStyles } from "./styles";
99
import SeoMetadata from "../common/SeoMetadata";
1010

1111
const seoData = {
12-
title: "SingularityNET Beta Dapp",
12+
title: "SingularityNET AI Merketplace",
1313
description: `The SingularityNET Marketplace hosts AI services. Services offer free calls to try before you use ${process.env.REACT_APP_TOKEN_NAME} or Paypal to purchase`,
1414
image: `${process.env.REACT_APP_SNET_CDN}/dapp/assets/images/SEO/singularitynet-marketplace.png`,
1515
twitterImage: `${process.env.REACT_APP_SNET_CDN}/dapp/assets/images/SEO/singularitynet-marketplace-twitter.png`,

0 commit comments

Comments
 (0)