Skip to content

Commit 0aea136

Browse files
committed
fix: [Composer] fix the condition of render SendConfirm
1 parent a8119d6 commit 0aea136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Composer/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ export const Composer = React.forwardRef<ComposerHandle, ComposerProps>((props,
253253
onChange={handleTextChange}
254254
onPaste={onImageSend ? handlePaste : undefined}
255255
/>
256-
{handlePaste && (
257-
<SendConfirm file={pastedImage!} onCancel={handleImageCancel} onSend={handleImageSend} />
256+
{pastedImage && (
257+
<SendConfirm file={pastedImage} onCancel={handleImageCancel} onSend={handleImageSend} />
258258
)}
259259
</div>
260260
);

0 commit comments

Comments
 (0)