fix: extract long toast string to val, fix indentation
This commit is contained in:
1 parent
ab92b31d2e
commit
fea7820740
2 files changed
+3
-2
No files matched your search
@@ -62,10 +62,11 @@ class ChannelsViewModel : ViewModel() {
|
||||
}
|
||||
when (result) {
|
||||
is NetworkResult.Success -> {
|
||||
val message = "$platformId configured successfully — restart the gateway for changes to take effect"
|
||||
_uiState.update {
|
||||
it.copy(
|
||||
isLoading = false,
|
||||
toastMessage = "$platformId configured successfully — restart the gateway for changes to take effect",
|
||||
toastMessage = message,
|
||||
)
|
||||
}
|
||||
loadPlatforms()
|
||||
|
||||
Reference in new issue
Block a user