Skip to content

Commit 9d838e1

Browse files
committed
Fix sendBoxValue state
1 parent 801f351 commit 9d838e1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/internal/actions/setRawState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const setRawStateActionSchema = pipe(
1919
pipe(
2020
object({
2121
name: literal('sendBoxValue'),
22-
state: pipe(object({ text: string() }), readonly())
22+
state: string()
2323
}),
2424
readonly()
2525
),

packages/redux-store/src/sendBox/SendBoxComposer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function SendBoxComposer(props: SendBoxComposerProps) {
7777
}, [attachments, dispatch]);
7878

7979
useMemo(() => {
80-
dispatch(setRawState('sendBoxValue', { text: textValue }));
80+
dispatch(setRawState('sendBoxValue', textValue));
8181
}, [dispatch, textValue]);
8282
// #endregion
8383

0 commit comments

Comments
 (0)