Fix error with incorrect variable apptId

This commit is contained in:
Maks Snegov 2024-04-22 22:04:14 -07:00
parent d5475e7055
commit bdf4b5a7c4

View File

@ -289,8 +289,8 @@ async function runner() {
if (!config.apptId) {
config.apptId = await getAppointmentId();
if (config.apptId) {
console.log(`Appointment ID: ${apptId}`);
await chrome.storage.local.set({ "__apptId": apptId });
console.log(`Appointment ID: ${config.apptId}`);
await chrome.storage.local.set({ "__apptId": config.apptId });
} else {
console.log('No appointments found');
await chrome.storage.local.set({ "__status": "no appointment found" });