Skip to content

Commit c5c6158

Browse files
committed
Merge branch 'master' of github.com:topcoder-platform/platform-ui into dev
2 parents 674a0c5 + 1b00073 commit c5c6158

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ You will need to add the following line to your hosts file. The hosts file is no
147147

148148
SSL is required for authentication to work properly.
149149

150-
The `yarn start` command serves the site using the cert and key in the /ssl directory, which authorize the `https://local.topcoder-dev.com` URL.
150+
The `yarn start` command serves the site using the cert and key in the /ssl directory, which authorize the `https://local.topcoder-dev.com`URL.
151151

152152
By overriding the app to use <b>port 443</b>, you can use the authorized URL and trust the root CA to avoid SSL errors in the browser.
153153

@@ -157,6 +157,7 @@ Easy way to overcome elevated permissions is to make use of:
157157

158158
```
159159
sudo setcap 'cap_net_bind_service=+ep' `which node`
160+
```
160161

161162
For easier development, it is recommended that you add this certificate to your trusted root authorities and as a trused cert in your browser. Google your browser and OS for more info on how to trust cert authorities.
162163

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@topcoder-platform/platform-ui",
3-
"version": "2.6",
3+
"version": "2.0.7",
44
"private": true,
55
"scripts": {
66
"dev": "yarn react-app-rewired start",

src-ts/lib/profile-provider/profile-functions/profile.functions.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,11 @@ export async function getLoggedInAsync(handle?: string): Promise<UserProfile | u
2828
return output
2929
}
3030

31-
export async function getPublicAsync(handle?: string): Promise<UserProfile | undefined> {
32-
33-
// get the handle
34-
if (!handle) {
35-
return Promise.resolve(undefined)
36-
}
31+
export async function getPublicAsync(handle: string): Promise<UserProfile | undefined> {
3732

3833
// get the profile
3934
const profileResult: UserProfile = await profileStoreGet(handle)
4035

41-
// make the changes we need based on the token
4236
const output: UserProfile = profileFactoryCreate(profileResult)
4337
return output
4438
}

0 commit comments

Comments
 (0)