SFTtech / abrechnung

Payment tracking and money splitting for groups 💸
https://abrechnung.readthedocs.io
GNU Affero General Public License v3.0
122 stars 15 forks source link

"Create Account" throws error and creates the account #156

Closed natrius closed 1 year ago

natrius commented 1 year ago

Demo instance

Accounts - Create New Account - Enter Name, optionally Description (error occurs both times) - Save

Unhandled Thrown Error!
e.data[0] is undefined

h<@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:287964
@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:287956
e@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1156505
80402/t.useSyncExternalStoreWithSelector/d</<@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1156710
useSyncExternalStore@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:997914
83426/t.useSyncExternalStore@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1099470
80402/t.useSyncExternalStoreWithSelector@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1156781
p/<@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1062168
L8@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:287175
pa@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:990888
ll@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1048021
oc@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1034940
nc@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1034868
tc@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1034729
Vl@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1031553
ql@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1031942
Do@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:975144
zl/<@https://demo.abrechnung.sft.lol/main.200082f4ea24a0a3.js:205:1029513

💿 Hey developer 👋

You can provide a way better UX than this when your app throws errors by providing your own errorElement props on <Route>

Edit: The error occured somehwere else and it seems a problem when i open the account site itself, for example https://demo.abrechnung.sft.lol/groups/213/accounts/158

mikonse commented 1 year ago

Fixed by #159.

As a side note: the demo instance is running the current development version of master. If you use the latest release this issue should not arise there.