kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Apply 2 suggestion(s) to 2 file(s)
Co-authored-by: Alex Gleason <alex@alexgleason.me>merge-requests/3332/head
rodzic
b8c979b6a5
commit
34ef675ab4
|
@ -158,7 +158,7 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
|
|||
dispatch(changeCompose(id, text));
|
||||
dispatch(submitCompose(id, { history }));
|
||||
|
||||
if (streak === 0) {
|
||||
if (streak === 0 && features.streak) {
|
||||
dispatch(openModal('STREAK'));
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ const ComposeModal: React.FC<IComposeModal> = ({ onClose, composeId = 'compose-m
|
|||
dispatch(uploadCompose(composeId, files, intl));
|
||||
});
|
||||
|
||||
const userStreak = useAppSelector((state) => account?.ditto?.streak?.days ?? 0);
|
||||
const userStreak = account?.ditto.streak.days;
|
||||
|
||||
const onClickClose = () => {
|
||||
if (checkComposeContent(compose)) {
|
||||
|
|
Ładowanie…
Reference in New Issue