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:
parent
d70b5acaf9
commit
e2af5c0f2f
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue