From 8918c95b564b881719ebbdcb97e17e5b960176e8 Mon Sep 17 00:00:00 2001 From: everythingonblack Date: Fri, 20 Jun 2025 13:19:40 +0700 Subject: [PATCH] ok --- src/Dashboard.js | 2 +- src/ProfileTab.js | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Dashboard.js b/src/Dashboard.js index 2b544b7..a17db14 100644 --- a/src/Dashboard.js +++ b/src/Dashboard.js @@ -142,7 +142,7 @@ const Dashboard = () => { if (!checkOnce && 'serviceWorker' in navigator) { navigator.serviceWorker.ready.then(function (registration) { registration.pushManager.getSubscription().then(function (subscription) { - setCheckOnce(false); + setCheckOnce(true); if (subscription === null) { // Not subscribed yet — show modal asking user to subscribe setModalContent(setModalContent('')} />); diff --git a/src/ProfileTab.js b/src/ProfileTab.js index 2bd8c7a..bfcfec2 100644 --- a/src/ProfileTab.js +++ b/src/ProfileTab.js @@ -84,14 +84,7 @@ const ProfileTab = () => { }, [navigate]); - const [profile, setProfile] = useState({ - name: "Rikolo", - company: "Dermalounge", - address: "Jl. Pahlawan No.123, Kediri", - email: "admin@dermalounge.com", - phone: "08123456789", - image: "/dermalounge.jpg" - }); + const [profile, setProfile] = useState({}); const licenses = [ { id: 1, type: "AI Bot License", number: "DL-2025-AI001", validUntil: "2026-12-31" },