1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +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

@ -2,7 +2,7 @@ class PagesController < ApplicationController
skip_before_action :authenticate_user!, only: %i[early_access]
def dashboard
@period = Period.from_key(params[:period], fallback: true)
@period = params[:period] ? Period.from_key(params[:period]) : Period.last_30_days
@balance_sheet = Current.family.balance_sheet
@accounts = Current.family.accounts.active.with_attached_logo