fix: update calibration index check in displayAmsData function

This commit is contained in:
Manuel Weiser 2025-02-15 09:05:11 +01:00
parent dc82c04a17
commit 3e1490cafc

View File

@ -337,7 +337,7 @@ function displayAmsData(amsData) {
) )
.map(prop => { .map(prop => {
// Spezielle Behandlung für setting_id // Spezielle Behandlung für setting_id
if (prop.key === 'setting_id' && tray[prop.key] === '-1') { if (prop.key === 'cali_idx' && tray[prop.key] === '-1') {
return `<p>${prop.label}: not calibrated</p>`; return `<p>${prop.label}: not calibrated</p>`;
} }
return `<p>${prop.label}: ${tray[prop.key]}</p>`; return `<p>${prop.label}: ${tray[prop.key]}</p>`;