Skip to content

Commit

Permalink
DBC22-2102: second workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-oxd committed May 10, 2024
1 parent 3270ab6 commit abf6ba3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/frontend/src/expireReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const { createTransform } = require('redux-persist');
const transformRehydrate = (outboundState, config) => {
outboundState = outboundState || null;

// Temporary fix for the issue with expiry
if (config.expiredState) {
return config.expiredState;
}

// Check for the possible expiry if state has the persisted date
if (config.expireSeconds && outboundState.timeStamp) {
const startTime = new Date(outboundState.timeStamp).getTime();
Expand Down

0 comments on commit abf6ba3

Please sign in to comment.