Skip to content

Commit 44c9a8a

Browse files
anisaoshafiskyrpex
andauthored
Update src/utils/manage.ts
Access session_id differently Co-authored-by: Cristian Pallarés <[email protected]>
1 parent c6ab9ba commit 44c9a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/manage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function fetchLocalStackSessionId(): Promise<string> {
3232
if (response.ok) {
3333
const json = await response.json();
3434
if (typeof json === "object" && json !== null && "session_id" in json) {
35-
return (json as { session_id?: string }).session_id ?? "";
35+
return typeof json.session_id === "string" ? json.session_id : "";
3636
}
3737
}
3838
} catch {

0 commit comments

Comments
 (0)