Skip to content

Commit 37aee3d

Browse files
fix sam api reference
1 parent fe5381b commit 37aee3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/ajax/User.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ export const User = (signal?: AbortSignal) => {
197197
},
198198

199199
getSamUserCombinedState: async (): Promise<SamUserCombinedStateResponse> => {
200-
const res = await fetchSam('/api/user/v2/self/combinedState', _.mergeAll([authOpts(), { signal }]));
200+
const res = await fetchSam('api/users/v2/self/combinedState', _.mergeAll([authOpts(), { signal }]));
201201
const response = await res.json();
202-
if (response.terraUserAttributes !== null) {
202+
if (response.terraUserAttributes !== undefined) {
203203
response.terraUserAttributes = response.terraUserAttributes.map((attributes) => {
204204
const { userId: _, ...rest } = attributes;
205205
return rest;

0 commit comments

Comments
 (0)