1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 21:45:23 +02:00

Fix time period key conflicts (#1944)

This commit is contained in:
Zach Gollwitzer 2025-03-03 12:47:20 -05:00 committed by GitHub
parent 4c4a4026c4
commit e907b073ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 37 additions and 39 deletions

View file

@ -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 %>

View file

@ -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">