Skip to content

Commit

Permalink
Resolved issue #65
Browse files Browse the repository at this point in the history
  • Loading branch information
Elian Hijmans Malessy committed Jan 20, 2025
1 parent e342bb1 commit 17a45be
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/web/src/components/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ export default function Home() {
e.preventDefault();
try {
await axios.patch(
`${
import.meta.env.VITE_REACT_APP_AWS_BACKEND_URL
}/leaderboard/changeSubscription`,
`${import.meta.env.VITE_REACT_APP_AWS_BACKEND_URL}/leaderboard/changeSubscription`,
{
email: user.email,
subscription: !subscription,
Expand Down Expand Up @@ -434,7 +432,7 @@ export default function Home() {
>
{user
? leaderboard.find((u) => u.email === user.email)
?.points
?.points
: 0}
</Text>
</Flex>
Expand Down Expand Up @@ -600,7 +598,7 @@ export default function Home() {
flexDirection="row"
justifyContent="space-between"
>
{isEdit ? (
{(isEdit && !isOpenCreateModal) ? (
<Flex>
<Alert
status="warning"
Expand All @@ -625,7 +623,7 @@ export default function Home() {
colorScheme="#74a2fa"
color={colorMode === "light" ? "#5f85cf" : "white"}
spacing={3}
// boxShadow="5px 2px 9px rgba(0, 0, 0, 0.2);"
// boxShadow="5px 2px 9px rgba(0, 0, 0, 0.2);"
>
<Button
backgroundColor={
Expand Down Expand Up @@ -847,4 +845,4 @@ export default function Home() {
</Box>
</DataContext.Provider>
);
}
}

0 comments on commit 17a45be

Please sign in to comment.