aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Post.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Post.js')
-rw-r--r--vnext/src/ui/Post.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/ui/Post.js b/vnext/src/ui/Post.js
index 74b74ffc..8fc753b4 100644
--- a/vnext/src/ui/Post.js
+++ b/vnext/src/ui/Post.js
@@ -17,7 +17,7 @@ export default function Post() {
const [visitor] = useVisitor();
let draftMessage = (location.state || {}).data || {};
let [draft, setDraft] = useState(draftMessage.body);
- let params = useSearchParams();
+ let [params] = useSearchParams();
let postMessage = (template) => {
const { attach, body } = template;
const postAction = draftMessage.mid ? update(draftMessage.mid, 0, body) : post(body, attach);