Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:rotating_light: Fixes warnings from DeepScan

Alicia Sykesea3ffa5d3688
diff --git a/src/components/Charts/PercentageChart.vue b/src/components/Charts/PercentageChart.vue
index 05c6aaba..be5c0324 100644
--- a/src/components/Charts/PercentageChart.vue
+++ b/src/components/Charts/PercentageChart.vue
@@ -8,7 +8,7 @@
<div class="percentage-chart" :style="makeWrapperStyles(height)">
<div
v-for="(block, inx) in blocks" :key="inx"
- class="inner" :style="makeDimens(block, inx)"
+ class="inner" :style="makeDimens(block)"
v-tooltip="`${block.label} - ${block.width}%`"
></div>
</div>
diff --git a/src/components/Widgets/WalletBalance.vue b/src/components/Widgets/WalletBalance.vue
index 09ba466c..923ae8f9 100644
--- a/src/components/Widgets/WalletBalance.vue
+++ b/src/components/Widgets/WalletBalance.vue
@@ -96,7 +96,7 @@ export default {
final: formatAmount(data.final_balance),
totalSent: formatAmount(data.total_sent),
totalReceived: formatAmount(data.total_received),
- lastTransaction: data.txrefs ? getTimeAgo(data.txrefs[0].confirmed) : 'Never',
+ lastTransaction: data.txrefs[0] ? getTimeAgo(data.txrefs[0].confirmed) : 'Never',
};
const transactions = [];
data.txrefs.forEach((transaction) => {