mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 15:11:13 -05:00
Fix stuck claiming button
This commit is contained in:
@@ -107,6 +107,8 @@ export const QueueItem = memo(({
|
|||||||
// On success, component will re-render with new lock state
|
// On success, component will re-render with new lock state
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to claim submission:', error);
|
console.error('Failed to claim submission:', error);
|
||||||
|
} finally {
|
||||||
|
// Always reset claiming state, even on success
|
||||||
setIsClaiming(false);
|
setIsClaiming(false);
|
||||||
}
|
}
|
||||||
}, [onClaimSubmission, item.id]);
|
}, [onClaimSubmission, item.id]);
|
||||||
|
|||||||
Reference in New Issue
Block a user