Bug Description
The "Record Revenue" button does not get disabled while a transaction is being processed. This allows users to click the button multiple times rapidly, potentially sending duplicate revenue recording transactions to the smart contract.
Steps to Reproduce
- Connect wallet with a registered Business Object
- Enter a revenue amount in the input field
- Click "Record Revenue" button quickly multiple times before the transaction confirmation appears
- Check IOTA Explorer for the wallet's transaction history
Expected Behavior
The submit button should be disabled and show a loading indicator immediately after the first click, preventing any additional clicks until the transaction either confirms or fails.
Actual Behavior
The button remains clickable throughout the entire transaction signing and broadcasting process. Fast clicking sends multiple identical transactions, each recording the same revenue amount separately on-chain.
Impact
Users could accidentally inflate their revenue figures on-chain, corrupting their credit history data which is the core value proposition of Kredith.
Environment
- Chrome 122 / Firefox 124
- IOTA Testnet
- Any wallet with registered Business Object
Wallet: 0x964739472C587d24934c37BEbB405CeE36D59B24
Bug Description
The "Record Revenue" button does not get disabled while a transaction is being processed. This allows users to click the button multiple times rapidly, potentially sending duplicate revenue recording transactions to the smart contract.
Steps to Reproduce
Expected Behavior
The submit button should be disabled and show a loading indicator immediately after the first click, preventing any additional clicks until the transaction either confirms or fails.
Actual Behavior
The button remains clickable throughout the entire transaction signing and broadcasting process. Fast clicking sends multiple identical transactions, each recording the same revenue amount separately on-chain.
Impact
Users could accidentally inflate their revenue figures on-chain, corrupting their credit history data which is the core value proposition of Kredith.
Environment
Wallet: 0x964739472C587d24934c37BEbB405CeE36D59B24