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 fe5381b commit 37aee3dCopy full SHA for 37aee3d
src/libs/ajax/User.ts
@@ -197,9 +197,9 @@ export const User = (signal?: AbortSignal) => {
197
},
198
199
getSamUserCombinedState: async (): Promise<SamUserCombinedStateResponse> => {
200
- const res = await fetchSam('/api/user/v2/self/combinedState', _.mergeAll([authOpts(), { signal }]));
+ const res = await fetchSam('api/users/v2/self/combinedState', _.mergeAll([authOpts(), { signal }]));
201
const response = await res.json();
202
- if (response.terraUserAttributes !== null) {
+ if (response.terraUserAttributes !== undefined) {
203
response.terraUserAttributes = response.terraUserAttributes.map((attributes) => {
204
const { userId: _, ...rest } = attributes;
205
return rest;
0 commit comments