Commit 80e40018 authored by Chunchi Che's avatar Chunchi Che

fix removeChild error in translate mode

parent 8f6f971f
......@@ -22,7 +22,7 @@ const RegexWrapper: React.FC<{
Wrapper: React.FunctionComponent<any>;
}> = ({ text, re, Wrapper }) => {
const matches = text.match(re);
if (!matches) return <>{text}</>;
if (!matches) return <span>{text}</span>;
const sepRe = new RegExp(
matches?.reduce((acc, cur) => `${acc}|${cur}`) ?? "",
);
......
......@@ -360,7 +360,7 @@ const ActionButton: React.FC<{
{stage === RoomStage.WAITING ? (
<>
<IconFont type="icon-play" size={12} />
开始游戏
<span>开始游戏</span>
</>
) : stage === RoomStage.HAND_SELECTING ? (
<>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment