This commit is contained in:
Bilal
2020-09-19 04:48:06 +03:00
parent ffde784e59
commit beabcf66e3

View File

@@ -96,7 +96,7 @@ const MakeMoneyMove = (props) => {
<h3>Make Money Move</h3>
<div className="input-field col s12">
<input id="how-much" type="number" className="validate" step="0.01" required="required" value={amountToMove} onChange={handleAmountChange} pattern="\d*" />
<input id="how-much" type="number" className="validate" step="0.01" required="required" value={amountToMove} onChange={handleAmountChange} pattern="^\\?(([1-9](\\d*|\\d{0,2}(,\\d{3})*))|0)(\\.\\d{1,2})?$" />
<label className="required" htmlFor="how-much">How much?</label>
<span className="helper-text" data-error="Yo! Put some money" />
</div>