mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
Change default valuation currency to that of the related account, not family (#728)
This commit is contained in:
@@ -4,7 +4,7 @@ class ValuationsController < ApplicationController
|
||||
@account = Current.family.accounts.find(params[:account_id])
|
||||
|
||||
# TODO: placeholder logic until we have a better abstraction for trends
|
||||
@valuation = @account.valuations.new(valuation_params.merge(currency: Current.family.currency))
|
||||
@valuation = @account.valuations.new(valuation_params.merge(currency: @account.currency))
|
||||
if @valuation.save
|
||||
@valuation.account.sync_later(@valuation.date)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user