Skip to content

Missing loading state when submitting revenue transaction causes duplicate submissions #6

Description

@woydarko

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

  1. Connect wallet with a registered Business Object
  2. Enter a revenue amount in the input field
  3. Click "Record Revenue" button quickly multiple times before the transaction confirmation appears
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty-invalidBug report rejected by Scarab AI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions