Skip to content

Commit

Permalink
Merge pull request #234 from TeamDMU/design/cafeteria-price
Browse files Browse the repository at this point in the history
Refactor : ์ผํ’ˆ ๋ฐ ๋นˆ ์‹๋‹จ
  • Loading branch information
huiwoo-jo authored Apr 9, 2024
2 parents 9a0d46c + 0c87cf3 commit 4a9a706
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ class CafeteriaViewModel(
val cafeteriaList = _cafeteriaList.value ?: emptyList()
_selectedDate.value = selectedDate
_menus.postValue(
cafeteriaList.find { it.date == selectedDate.toString() }?.menus ?: emptyMenu
cafeteriaList.find { it.date == selectedDate.toString() }?.menus
.takeIf { it.isNullOrEmpty() }
?.let { emptyMenu }
?: cafeteriaList.find { it.date == selectedDate.toString() }?.menus
)
}
}
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<string name="cafeteria_no_menu">&#128517; ๋“ฑ๋ก๋œ ๋ฉ”๋‰ด๊ฐ€ ์—†์–ด์š”.</string>
<string name="cafeteria_korean">๐Ÿš ํ•œ์‹</string>
<string name="cafeteria_another">๐Ÿ› ์ผํ’ˆ</string>
<string name="cafeteria_another_list">๊น€์น˜๋ณถ์Œ๋ฐฅ 4,900์› / ๋ผ๋ฉด 4,000์› / ์น˜์ฆˆ๋ผ๋ฉด 4,500์› / ํ•ด๋ฌผ์งฌ๋ฝ•๋ผ๋ฉด 4,500์› / ๋ˆ๊ฐ€์Šค 5,000์› / ์น˜์ฆˆ๋ˆ๊ฐ€์Šค 5,500์› / ๊ณ ๊ตฌ๋งˆ์น˜์ฆˆ๋ˆ๊นŒ์Šค 6,000์›</string>
<string name="cafeteria_another_list">๋ผ๋ฉด 3,500์› / ์น˜์ฆˆ๋ผ๋ฉด 4,000์› / ํ•ด๋ฌผ๋ผ๋ฉด 4,500์› / ๋ˆ๊นŒ์Šค 5,500์› / ์น˜์ฆˆ๋ˆ๊นŒ์Šค 5,500์› / ๊ณ ๊ตฌ๋งˆ์น˜์ฆˆ๋ˆ๊นŒ์Šค 6,000์› / ์ŠคํŒธ๊น€์น˜๋ณถ์Œ๋ฐฅ 4,900์› / ์น˜ํ‚จ๋งˆ์š”๋ฎ๋ฐฅ 4,500์› / ๋ถˆ๋‹ญ๋งˆ์š”๋ฎ๋ฐฅ 4,500์› / ์˜ค๋ฏ€๋ผ์ด์Šค 5,500์›</string>

<!-- license -->
<string name="license_title">์˜คํ”ˆ์†Œ์Šค ๋ผ์ด์„ผ์Šค</string>
Expand Down

0 comments on commit 4a9a706

Please sign in to comment.