Skip to content

Commit 48a4f7e

Browse files
authored
fix: add emptyset as lhs fallback (#10)
1 parent cfe20b9 commit 48a4f7e

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

frontend/src/lib/components/exerciseListElement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const ExerciseListElment = ({ exercise }: exerciseListElementProps) => {
6161
</Grid.Col>
6262
<Grid.Col span={1}>
6363
<Group justify="flex-end" gap={0}>
64-
<Tooltip label="toggle">
64+
<Tooltip label={fav ? "Remove from favorites" : "Add to favorites"}>
6565
<ActionIcon
6666
variant={"transparent"}
6767
onClick={() => {

frontend/src/lib/components/feedback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const Feedback = ({ exercise }: FeedbackProps) => {
101101
size={10}
102102
color={color}
103103
/>
104-
<Button onClick={onSubmit}>Submit</Button>
104+
<Button onClick={onSubmit} disabled={like === undefined}>Submit</Button>
105105
</Stack>
106106
</Drawer>
107107
</>

frontend/src/lib/components/header.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const Header: React.FC = (): React.ReactNode => {
88
return (
99
<Flex px={"md"} align="center" justify="space-between" h="100%">
1010
<Link
11-
onClick={location.reload}
1211
href={"/"}
1312
style={{ textDecoration: "none", color: "inherit" }}
1413
>

frontend/src/lib/utils/export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function exportToTypst(root: NodeType, nodes: Array<NodeType>): string {
1111

1212
function exportSubformula(node: NodeType, nodes: Array<NodeType>): string {
1313
const name = getTypstRuleByName(node.rule as Rules);
14-
const lhs = node.statement.lhs.map(formulaToTypst).join(", ");
14+
const lhs = node.statement.lhs.map(formulaToTypst).join(", ") || "emptyset";
1515
const current = formulaToTypst(node.statement.formula);
1616

1717
const premisses = node.premisses

0 commit comments

Comments
 (0)