Skip to content

Commit

Permalink
Update summoners_controller.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
danReynolds committed Mar 30, 2018
1 parent ef120c1 commit 1b85f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/summoners_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def load_summoner
id = RiotApi::get_summoner_id(name: name)
if id
@summoner = Summoner.find_by_summoner_id(id)
@summoner.name = name
@summoner.name = name if @summoner
end
end

Expand Down

0 comments on commit 1b85f2d

Please sign in to comment.