Skip to content

Commit

Permalink
Merge pull request #34636 from bernhardoj/fix/33168-can't-save-status…
Browse files Browse the repository at this point in the history
…-after-setting-clear-after-to-never

Fix can't save status after setting the clear after to never
  • Loading branch information
stitesExpensify authored Jan 22, 2024
2 parents 10b8fe1 + 428d0f8 commit 9dd51a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/settings/Profile/CustomStatus/StatusPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function StatusPage({draftStatus, currentUserPersonalDetails}) {
const navigateBackToPreviousScreen = useCallback(() => Navigation.goBack(ROUTES.SETTINGS_PROFILE, false, true), []);
const updateStatus = useCallback(
({emojiCode, statusText}) => {
const clearAfterTime = draftClearAfter || currentUserClearAfter;
const clearAfterTime = draftClearAfter || currentUserClearAfter || CONST.CUSTOM_STATUS_TYPES.NEVER;
const isValid = DateUtils.isTimeAtLeastOneMinuteInFuture({dateTimeString: clearAfterTime});
if (!isValid && clearAfterTime !== CONST.CUSTOM_STATUS_TYPES.NEVER) {
setBrickRoadIndicator(isValidClearAfterDate() ? null : CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR);
Expand Down

0 comments on commit 9dd51a3

Please sign in to comment.