1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-30 08:56:52 +02:00

PR comment fix

This commit is contained in:
Tarun Singh 2023-07-13 20:37:21 -04:00
parent 6f4af30701
commit ad3ffacf45

View File

@ -181,8 +181,8 @@ export default {
* @returns {string}
*/
certExpiryColor(monitor) {
if (monitor?.element?.validCert) {
return monitor.element.certExpiryDaysRemaining > 7 ? "primary" : "danger";
if (monitor?.element?.validCert && monitor.element.certExpiryDaysRemaining > 7) {
return "primary";
}
return "danger";
},