Open gregsadetsky opened 1 year ago
Several other operations have this same behavior. For example: ROT47, Affine Cipher Encode, LS47...
While I agree that displaying [object Object]
is confusion and probably inappropriate, the question is: what should the UI do in these cases?
Describe the bug
When using the ROT13 operation, if you enter a negative "amount" (i.e. the amount that is 13 by default), an incorrect "toast" message appears at the bottom (see below for screenshot). An error also appears in the console: "Invalid ingredient value. Not a number: NaN"
To Reproduce
Expected behaviour
The expected behavior would be for no message to appear at the bottom, or for a human-readable one to appear.
Screenshots
Desktop (if relevant, please complete the following information):
Additional context
n/a