Skip to content

Commit

Permalink
Merge pull request pointer-gg#7 from pointer-gg/test-run
Browse files Browse the repository at this point in the history
tweaks
  • Loading branch information
malerba118 authored Mar 1, 2022
2 parents 119eed7 + ac5a221 commit b086bf5
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions components/CommentEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { HStack, Stack, Textarea } from "@chakra-ui/react";
import * as React from "react";
import { HStack, Stack, Textarea } from "@chakra-ui/react";
import { constants } from "ethers";
import Avatar from "@davatar/react";
import AuthButton from "./AuthButton";
import { useAccount } from "wagmi";
Expand All @@ -21,16 +22,11 @@ const CommentEditor: React.FunctionComponent<CommentEditorProps> = ({
<HStack spacing={3} alignItems="start">
<Avatar
size={48}
address={
accountQuery.data?.address ||
"0x0000000000000000000000000000000000000000"
}
address={accountQuery.data?.address || constants.AddressZero}
/>
<Textarea
value={message}
onChange={(e) => {
setMessage(e.target.value);
}}
onChange={(e) => setMessage(e.target.value)}
placeholder="Write a message.."
p={3}
flex={1}
Expand All @@ -49,9 +45,7 @@ const CommentEditor: React.FunctionComponent<CommentEditorProps> = ({
message,
topic,
})
.then(() => {
setMessage("");
});
.then(() => setMessage(""));
}}
isLoading={mutation.isLoading}
>
Expand Down

0 comments on commit b086bf5

Please sign in to comment.