We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2688a8b commit d96085aCopy full SHA for d96085a
src-ts/lib/profile-provider/profile-functions/profile.functions.ts
@@ -28,17 +28,11 @@ export async function getLoggedInAsync(handle?: string): Promise<UserProfile | u
28
return output
29
}
30
31
-export async function getPublicAsync(handle?: string): Promise<UserProfile | undefined> {
32
-
33
- // get the handle
34
- if (!handle) {
35
- return Promise.resolve(undefined)
36
- }
+export async function getPublicAsync(handle: string): Promise<UserProfile | undefined> {
37
38
// get the profile
39
const profileResult: UserProfile = await profileStoreGet(handle)
40
41
- // make the changes we need based on the token
42
const output: UserProfile = profileFactoryCreate(profileResult)
43
44
0 commit comments