Skip to content

Commit

Permalink
use sessionStorage to fetchfloorData
Browse files Browse the repository at this point in the history
  • Loading branch information
tej656 committed Jul 31, 2024
1 parent b83daf8 commit 0fee808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pubxaiRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const fetchFloorRules = async (provider) => {
} else {
// Fetch from local storage
try {
const localData = storage.getDataFromLocalStorage('pubx:dynamicFloors') || window.__pubxDynamicFloors__;
const localData = storage.getDataFromSessionStorage('pubx:dynamicFloors') || window.__pubxDynamicFloors__;
if (localData) {
resolve(JSON.parse(localData));
} else {
Expand Down

0 comments on commit 0fee808

Please sign in to comment.