desmos-labs/dpm

Strip spaces from mnemonic input

RiccardoM opened this issue · 0 comments

Currently when writing a mnemonic phrase inside the proper input, initial and ending spaces are not stripped from the input itself. This results in the app returning "Invalid mnemonic" even if there is only an additional space at the end (or beginning) or the input.

In order to improve the overall UX, I think it would be better to automatically remove all the initial and ending spaces from the input phrase, so that they do not count during the validation process of the mnemonic phrase itself.