Happy0 / ssb-chess

A library for building scuttlebutt chess clients with
GNU General Public License v2.0
63 stars 16 forks source link

Fix stalemate condition #79

Closed christianbundy closed 6 years ago

christianbundy commented 6 years ago

This resolves an issue where stalemates would crash the "recent activity" page. :~)

Happy0 commented 6 years ago

Thanks for fixing this, @christianbundy . Would you mind updating the pull request so that there's a separate function for rendering the stalemate message? At the moment, it's under the renderResignMessage function.

Maybe we could have a renderStalemateMessage function as well?

christianbundy commented 6 years ago

Oops, I suppose I could've actually read the code. Sorry about that, I don't know why I thought that would work. Anyway, I've added the above change and run the linter and I think it's ready to go.

Happy0 commented 6 years ago

Looks good to me. Fanx! =D