I broke the 'buy cycles' feature

Problem description:
if you enter a custom amount of cycles when buying it, and you enter a ridiculously large number (e.g. 10,000,000,000,000,000,000) the page crashes

Expected behavior:

  • Should not crash
  • Could output a message saying “invalid amount”

Actual behavior:

  • Pages crashes
  • Redirects you to “we encountered a problem page”

Steps to reproduce:
type in a very large number in the box shown in the screenshot below

:smile: :melting_face: