Oops, forgot to put confirm dialog before boosting

This commit is contained in:
Lim Chee Aun 2022-12-20 10:09:05 +08:00
parent bf907abc17
commit 1538400dc0

View file

@ -455,6 +455,14 @@ function Status({
count={reblogsCount}
onClick={async () => {
try {
if (!reblogged) {
const yes = confirm(
'Are you sure that you want to boost this post?',
);
if (!yes) {
return;
}
}
// Optimistic
states.statuses.set(id, {
...status,