diff --git a/webclient/src/Transactions.js b/webclient/src/Transactions.js index eb3e4a0..9ef403a 100644 --- a/webclient/src/Transactions.js +++ b/webclient/src/Transactions.js @@ -10,6 +10,8 @@ import { NotFound, PleaseLogin } from './Misc.js'; export function TransactionEditor(props) { const { token, input, setInput, error, noMemberSearch } = props; + const [prevInput, setPrevInput] = useState(input); + const handleValues = (e, v) => setInput({ ...input, [v.name]: v.value }); const handleUpload = (e, v) => setInput({ ...input, [v.name]: e.target.files[0] }); const handleChange = (e) => handleValues(e, e.currentTarget); @@ -62,7 +64,7 @@ export function TransactionEditor(props) { return (
- {!noMemberSearch && + {!noMemberSearch && + { input?.account_type != prevInput?.account_type && input?.account_type == 'PayPal' && + + Are you absolutely sure? +

PayPal transactions should be automatic. Double check there's no duplicate. They may take 24h to appear.

+
+ } + {/*