Currently, user's spend notes are downloaded regardless if the transaction will go through. This is confusing when the transaction does not go through, and user is left with with useless spend note.
Moreover, when user attempts to upload the failed tx spend note, there is misleading error message indicating 'invalid note format'. This is confusing as the file is json file.
Proposed Update
Maybe we should only download spend notes automatically once the transaction is successful.
We also need better error messages. We should spec out all the possible errors and provide helpful feedback in the component.
We should be able to detect if the json file uploaded is a failed tx.
Description
Currently, user's spend notes are downloaded regardless if the transaction will go through. This is confusing when the transaction does not go through, and user is left with with useless spend note.
Moreover, when user attempts to upload the failed tx spend note, there is misleading error message indicating 'invalid note format'. This is confusing as the file is json file.
Proposed Update
Screenshots