🐛 bugfix in matching logic

This commit is contained in:
shumit taher 2025-09-30 05:22:45 +00:00
parent 8523c6e03b
commit 1e5e3e6245
2 changed files with 5 additions and 2 deletions

View file

@ -336,7 +336,7 @@ export default {
const map = JSON.parse(sessionStorage.getItem(SECRET_UNLOCKED_KEY) || '{}'); const map = JSON.parse(sessionStorage.getItem(SECRET_UNLOCKED_KEY) || '{}');
map[id] = pin; map[id] = pin;
sessionStorage.setItem(SECRET_UNLOCKED_KEY, JSON.stringify(map)); sessionStorage.setItem(SECRET_UNLOCKED_KEY, JSON.stringify(map));
const unlockPins = JSON.parse(sessionStorage.getItem(SECRET_UNLOCKED_KEY) || '{}'); const unlockPins = JSON.parse(sessionStorage.getItem(SECRET_PINS_KEY) || '{}');
const sectionKey = this.sectionRef; const sectionKey = this.sectionRef;
const savedPin = unlockPins[sectionKey]; const savedPin = unlockPins[sectionKey];
@ -373,7 +373,7 @@ export default {
const secretPin = String(this.pin || '0000'); const secretPin = String(this.pin || '0000');
const sectionKey = this.sectionRef; const sectionKey = this.sectionRef;
console.log('Section Key', sectionKey, secretPin);
const pins = JSON.parse(sessionStorage.getItem(SECRET_PINS_KEY) || '{}'); const pins = JSON.parse(sessionStorage.getItem(SECRET_PINS_KEY) || '{}');
if (pins[sectionKey] !== secretPin) { if (pins[sectionKey] !== secretPin) {
pins[sectionKey] = secretPin; pins[sectionKey] = secretPin;

View file

@ -17,6 +17,9 @@ appConfig:
sections: sections:
- name: Getting Started - name: Getting Started
icon: fas fa-rocket icon: fas fa-rocket
pin: 1245
displayData:
secret: true
items: items:
- title: Dashy Live - title: Dashy Live
description: Development a project management links for Dashy description: Development a project management links for Dashy