mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
Do not show calculator inline view if the expression and result is the same
This commit is contained in:
parent
b682011b5d
commit
3ee15b7357
1 changed files with 4 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue