Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: When creating a new transaction, it is recommended to turn the submit button gray after clicking it to prevent duplicate transaction creation after multiple clicks #318

Open
s4w4j4 opened this issue Jul 16, 2024 · 3 comments
Assignees
Milestone

Comments

@s4w4j4
Copy link

s4w4j4 commented Jul 16, 2024

image

@marcelweikum
Copy link
Contributor

marcelweikum commented Jul 17, 2024

There is a button in the settings screen, which prevents double transactions by closing the transaction form after submitting.

<AView
style={{
borderTopWidth: 0.5,
borderBottomWidth: 0.5,
borderColor: colors.listBorderColor,
backgroundColor: colors.tileBackgroundColor,
}}
>
<AStack
row
justifyContent="space-between"
style={{
height: 45,
paddingHorizontal: 10,
paddingVertical: 5,
marginLeft: 10,
}}
>
<AText fontSize={14}>{translate('close_after_transaction')}</AText>
<Switch thumbColor="white" trackColor={{ false: '#767577', true: colors.brandStyle }} onValueChange={handleCheckBoxChange} value={closeTransactionScreen} />
</AStack>
</AView>

configuration_transaction_form: 'Transaction Form',
close_after_transaction: 'Close transaction form after submission'

EDIT: spamming the button does indeed still duplicate items if exploited.

@s4w4j4
Copy link
Author

s4w4j4 commented Jul 17, 2024

Thank you, I have enabled this option. I'm sorry, it didn't solve the problem mentioned.

Due to the inability to confirm whether the submit button has been successfully clicked, there are situations where the submit button has been clicked multiple times, resulting in duplicate bill creation.image

@marcelweikum
Copy link
Contributor

Hey @victorbalssa,

I can take care of that.

Best,
Marcel

@victorbalssa victorbalssa modified the milestones: 0.20.0, 0.21.0 Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants