Do not show calculator inline view if the expression and result is the same

This commit is contained in:
Exidex 2024-04-16 20:45:46 +02:00
parent b682011b5d
commit 3ee15b7357

View file

@ -15,6 +15,10 @@ export default function Default(props: { text: string }): ReactNode | undefined
try {
const { left, right } = InternalApi.run_numbat(text);
if (left == right) {
return undefined
}
return (
<Inline>
<Inline.Left>