Improve validation

This commit is contained in:
2022-08-22 22:37:49 +00:00
parent 1444a52a11
commit 495a6855a1
2 changed files with 18 additions and 7 deletions

View File

@@ -116,7 +116,8 @@ export function TransactionEditor(props) {
{input?.account_type !== prevInput?.account_type && input?.account_type === 'Protocoin' &&
<Message visible warning>
<Message.Header>Are you sure?</Message.Header>
<p>Protocoin spending transactions are automatic. Do you want "Purchase of Protocoin" category below?</p>
<p>Protocoin spending transactions are automatic. Do you want the "Purchase of Protocoin" category below?</p>
{input.protocoin > 0 && <p>Also, the value should be a <b>negative</b> number if they are spending Protocoin.</p>}
</Message>
}