Skip to content

Commit

Permalink
Issue #0000 fix: result page issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmore committed Nov 6, 2024
1 parent fce580d commit a92b6d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Layouts.jsx/MainLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ const MainLayout = (props) => {
<Typography textAlign="center" sx={{ mt: 2 }}>
You need{" "}
<span style={{ fontWeight: "bold" }}>
{percentage <= 0 ? 70 : 70 - percentage}
{Math.abs(70 - percentage)}
</span>{" "}
more.
</Typography>
Expand Down
5 changes: 1 addition & 4 deletions src/views/Practice/Practice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,7 @@ const Practice = () => {
user_id: virtualId,
totalSyllableCount: totalSyllableCount,
language: localStorage.getItem("lang"),
is_mechanics:
currentGetContent && currentGetContent?.mechanism?.id
? true
: false,
is_mechanics: mechanism && mechanism?.id ? true : false,
}
);
const { data: getSetData } = getSetResultRes;
Expand Down

0 comments on commit a92b6d0

Please sign in to comment.