mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +02:00
Fix time period key conflicts (#1944)
This commit is contained in:
parent
4c4a4026c4
commit
e907b073ed
6 changed files with 37 additions and 39 deletions
|
@ -1,4 +1,4 @@
|
|||
<% period = Period.from_key(params[:period], fallback: true) %>
|
||||
<% period = params[:period] ? Period.from_key(params[:period]) : Period.last_30_days %>
|
||||
<% series = @account.balance_series(period: period) %>
|
||||
<% trend = series.trend %>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<%# locals: (account:, title: nil, tooltip: nil, **args) %>
|
||||
|
||||
<% period = Period.from_key(params[:period], fallback: true) %>
|
||||
<% period = params[:period] ? Period.from_key(params[:period]) : Period.last_30_days %>
|
||||
<% default_value_title = account.asset? ? t(".balance") : t(".owed") %>
|
||||
|
||||
<div id="<%= dom_id(account, :chart) %>" class="bg-white shadow-xs rounded-xl border border-alpha-black-25 rounded-lg space-y-2">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue