Skip to content

Commit

Permalink
Removed null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
aritra-tech committed Mar 14, 2024
1 parent 37101a3 commit e02c5c2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import com.geekymusketeers.uncrack.components.UCButton
import com.geekymusketeers.uncrack.components.UCTextField
import com.geekymusketeers.uncrack.domain.model.Key
import com.geekymusketeers.uncrack.ui.theme.bold30
import com.geekymusketeers.uncrack.util.Encryption
import com.geekymusketeers.uncrack.viewModel.KeyViewModel

@Composable
Expand Down Expand Up @@ -68,7 +67,7 @@ fun CreateMasterKeyScreen(
.fillMaxWidth(),
headerText = stringResource(id = R.string.master_key),
hintText = stringResource(id = R.string.password_hint),
value = masterKeyObserver ?: "",
value = masterKeyObserver,
onValueChange = {
masterKeyViewModel.setMasterKey(it)
},
Expand Down Expand Up @@ -98,7 +97,7 @@ fun CreateMasterKeyScreen(
.fillMaxWidth(),
headerText = stringResource(id = R.string.confirm_master_key),
hintText = stringResource(id = R.string.password_hint),
value = confirmMasterKeyObserver ?: "",
value = confirmMasterKeyObserver,
onValueChange = {
masterKeyViewModel.setConfirmMasterKey(it)
},
Expand Down

0 comments on commit e02c5c2

Please sign in to comment.