0
0
Fork 0

Add default post text to onboarding flow in web UI (#24705)

This commit is contained in:
Eugen Rochko 2023-04-28 10:05:34 +02:00 committed by GitHub
parent 1c61869eed
commit 8979b70975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 6 deletions

View file

@ -528,7 +528,7 @@ export default function compose(state = initialState, action) {
case COMPOSE_LANGUAGE_CHANGE:
return state.set('language', action.language);
case COMPOSE_FOCUS:
return state.set('focusDate', new Date());
return state.set('focusDate', new Date()).update('text', text => text.length > 0 ? text : action.defaultText);
default:
return state;
}