Skip to content

Commit

Permalink
refactor: Update isDeepLinkConsumedKey to underscore case
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Dec 13, 2024
1 parent 4ae82c1 commit 66f277b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ class TransfersViewModel @Inject constructor(

val selectedTransferUuids: SnapshotStateMap<String, Boolean> = mutableStateMapOf()

val isDeepLinkConsumed = savedStateHandle.getStateFlow(isDeepLinkConsumedKey, false)
val isDeepLinkConsumed = savedStateHandle.getStateFlow(IS_DEEP_LINK_CONSUMED_KEY, false)

fun consumeDeepLink() {
viewModelScope.launch {
if (!isDeepLinkConsumed.first()) savedStateHandle[isDeepLinkConsumedKey] = true
if (!isDeepLinkConsumed.first()) savedStateHandle[IS_DEEP_LINK_CONSUMED_KEY] = true
}
}

Expand All @@ -83,6 +83,6 @@ class TransfersViewModel @Inject constructor(
companion object {
private val TAG = TransfersViewModel::class.java.simpleName

private const val isDeepLinkConsumedKey = "isDeepLinkConsumed"
private const val IS_DEEP_LINK_CONSUMED_KEY = "isDeepLinkConsumed"
}
}

0 comments on commit 66f277b

Please sign in to comment.