Fix svelte error

* Fix error: Type '{ opacity: number; }' is not assignable to type 'string'. (ts)
This commit is contained in:
Matt Krump 2020-07-28 15:52:21 -06:00
parent a239b9330d
commit d789cea384

View file

@ -36,7 +36,7 @@
<svg <svg
bind:this={svg} bind:this={svg}
viewBox={`0 0 ${bounds.width} ${bounds.height}`} viewBox={`0 0 ${bounds.width} ${bounds.height}`}
style={{ opacity: graphData.totalCards ? 1 : 0 }}> style="opacity: {graphData.totalCards ? 1 : 0};">
<g class="days" /> <g class="days" />
</svg> </svg>