Fixed laout error on realtime data

This commit is contained in:
Gunnar Skjold 2023-04-10 14:14:20 +02:00
parent 28e13b73e6
commit 8ee8eee6c4
2 changed files with 10 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@ -9,8 +9,8 @@
let hasCost = false;
let cols = 3
$: {
cols = currency ? 3 : 2;
hasCost = data && data.h && (data.h.c || data.d.c || data.m.c || data.h.i || data.d.i || data.m.i);
cols = hasCost ? 3 : 2;
}
</script>