fix(share): correct decisionState type narrowing in ShareView

Wrap the render condition in parentheses and include 'submitting' so
TypeScript does not narrow decisionState to 'idle'|'error' inside the
review form block, eliminating four TS2367 comparison errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-05-06 09:57:35 +01:00
parent d70b5acaf9
commit e2af5c0f2f

View file

@ -203,7 +203,7 @@ export function ShareView() {
</div>
{/* Client review section */}
{isPendingReview && decisionState === 'idle' || decisionState === 'error' ? (
{isPendingReview && (decisionState === 'idle' || decisionState === 'submitting' || decisionState === 'error') ? (
<div className="bg-white border border-gray-200 rounded-xl p-6 space-y-5">
<div>
<h2 className="text-base font-semibold text-gray-900">Your Review</h2>