ddsnowboard / FantasyStocks

A website where you play a game of fantasy stocks.
http://fantasystocks.herokuapp.com
Apache License 2.0
0 stars 1 forks source link

User page bug #40

Closed ddsnowboard closed 8 years ago

ddsnowboard commented 8 years ago

If you go to another user's page and go onto a floor that you're not in and click a stock, it doesn't know what to do and throws an error. I think that I should probably make it so that you just can't click on stocks that you can't do anything with. I don't think that'll be that hard.

ddsnowboard commented 8 years ago

It's way harder to fix than I thought. I'm calling the same function for both the dashboard and the user page, and since I can't pass arguments I can't turn off the links. I guess, now that I think about it, I have to add linked linkless methods to the Players, and then I can send arguments to all the methods after that. I guess that can work. Then there will just be no links on the User page, which seems logical enough to me.