Skip to content

Commit

Permalink
Fix overwriting tac by empty value from backend
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKaN committed Nov 14, 2023
1 parent 9cc4d12 commit 0feddfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ internal class HttpHelper(
override fun afterExecute(request: ExperienceRequest, response: ExperienceResponse) = with(response) {
prefsStorage.xbuilderBrowserCookie = xbCookie?.value.orEmpty()
prefsStorage.tpBrowserCookie = tbCookie?.value.orEmpty()
prefsStorage.tpAccessCookie = taCookie?.value.orEmpty()
taCookie?.value.takeUnless { it.isNullOrEmpty() }?.also { prefsStorage.tpAccessCookie = it }
visitTimeoutMinutes?.let { prefsStorage.visitTimeout = TimeUnit.MILLISECONDS.convert(it, TimeUnit.MINUTES) }
prefsStorage.serverTimezoneOffset = timeZoneOffsetMillis
}
Expand Down

0 comments on commit 0feddfb

Please sign in to comment.