Skip to content

Commit

Permalink
ъы
Browse files Browse the repository at this point in the history
  • Loading branch information
olegaches committed Dec 13, 2023
1 parent 1379646 commit a0961ec
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 42 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/cocktailbar/Mappers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fun CocktailEntity.toCocktail(): Cocktail {
name = name,
description = description,
recipe = recipe,
ingredients = ingredients.let { if(it.isBlank()) emptyList() else it.split(',') },
ingredients = ingredients.let { if(it.isBlank()) emptyList() else it.split("ъы") },
image = image,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CocktailRepositoryImpl(
name = cocktail.name,
description = cocktail.description,
recipe = cocktail.recipe,
ingredients = cocktail.ingredients.joinToString(","),
ingredients = cocktail.ingredients.joinToString("ъы"),
image = cocktail.image,
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.cocktailbar.presentation.cocktails

import com.cocktailbar.domain.model.Cocktail
import com.cocktailbar.util.UiText

data class CocktailListState(
val isLoading: Boolean = true,
val cocktails: List<Cocktail> = emptyList(),
val error: UiText? = null,
)
38 changes: 0 additions & 38 deletions app/src/main/java/com/cocktailbar/util/UiText.kt

This file was deleted.

0 comments on commit a0961ec

Please sign in to comment.