Commit 1412326
committed
Fix compatibility message overriding more-severe probe error message
Only use the compatibility advisory's message when the advisory actually
changed the provider status. Previously, a warning-severity advisory
message would unconditionally override a more important error message
from the probe, even though the status correctly remained 'error'. This
created a contradictory UX where the status showed an error but the
message downplayed the issue.
The fix moves the status computation before the message computation and
gates compatibilityMessage on status !== snapshot.status, so the
advisory message is only used when the advisory drove the status change.1 parent 1408240 commit 1412326
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | 296 | | |
301 | 297 | | |
302 | 298 | | |
| |||
305 | 301 | | |
306 | 302 | | |
307 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
0 commit comments