Skip to content

Commit

Permalink
fix(chat): lost text
Browse files Browse the repository at this point in the history
  • Loading branch information
uonr committed Dec 29, 2023
1 parent 30abc42 commit 989d547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/chat/state/compose.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const handleToggleInGame = (state: ComposeState, action: ComposeAction<'toggleIn
} else {
const before = source.substring(0, modifier.start);
const after = source.substring(modifier.start + modifier.len);
nextSource = modifier.inGame ? '.out ' : '.in ' + (before + after).trimStart();
nextSource = (modifier.inGame ? '.out ' : '.in ') + (before + after).trimStart();
}
return { ...state, source: nextSource, range: [nextSource.length, nextSource.length] };
};
Expand Down

0 comments on commit 989d547

Please sign in to comment.