This commit is contained in:
anirban paul 2024-05-09 04:44:13 +00:00 committed by GitHub
commit 55a370dc31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -115,7 +115,12 @@ const StatusView = (): React.ReactElement => {
headerLeft: isMasterDetail ? undefined : () => <HeaderButton.CancelModal onPress={goBack} />,
headerRight: () => (
<HeaderButton.Container>
<HeaderButton.Item title={I18n.t('Save')} onPress={submit} testID='status-view-submit' />
<HeaderButton.Item
title={I18n.t('Save')}
disabled={status === user.status && statusText === user.statusText}
onPress={submit}
testID='status-view-submit'
/>
</HeaderButton.Container>
)
});