Skip to content

Commit 931ae86

Browse files
committed
Fix setSsion stale value set
Herp derp, it's not a boolean so we should not check for a boolean, but just set the value
1 parent 285c594 commit 931ae86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ts-api-react/src/SessionContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const setSession = (
7272
) => {
7373
_storage.setValue(API_HOST_KEY, sessionData.apiHost);
7474
_storage.setValue(COOKIE_DOMAIN_KEY, sessionData.cookieDomain);
75-
_storage.setValue(STALE_KEY, sessionData.stale ? "yes" : "no");
75+
_storage.setValue(STALE_KEY, sessionData.stale);
7676
};
7777

7878
export const setSessionStale = (_storage: StorageManager, isStale: boolean) => {

0 commit comments

Comments
 (0)