Skip to content

Commit

Permalink
Fix current plan when no plan active
Browse files Browse the repository at this point in the history
  • Loading branch information
nickel committed Apr 8, 2024
1 parent 30505a2 commit 4d77b8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/packages/planning/controllers/plans_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ def activate
end

def current
@plan = Plan::FindCurrent.call(
Plan::FindCurrent.call(
account_id: current_account.id
).value
).and_then do |plan|
@plan = plan
end
end

def destroy
Expand Down

0 comments on commit 4d77b8c

Please sign in to comment.