Skip to content

Commit

Permalink
Missing country_code
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpigford committed Nov 18, 2024
1 parent a96511c commit c863906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/stocks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def show
@stock = Stock.find_by(symbol: params[:ticker])
end

redirect_to stocks_path unless @stock
redirect_to stocks_path unless @stock && @stock.country_code.present?
end

def exchanges
Expand Down

0 comments on commit c863906

Please sign in to comment.