admin: a withdrawal that went through is reported even when the state re-read fails

This commit is contained in:
Maurice
2026-10-30 23:14:32 +00:00
parent 314b087f98
commit dc76efc418
2 changed files with 33 additions and 1 deletions
@@ -53,7 +53,8 @@ export function usePlaceContrib() {
setBusy(true);
try {
const result = await placeContribRepo.withdraw();
setState(await placeContribRepo.state());
// The withdrawal went through; a failed re-read keeps the old state rather than reporting it failed.
await placeContribRepo.state().then(setState, () => undefined);
return result;
} finally {
setBusy(false);