mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2024-11-23 18:26:02 -06:00
Fix empty list on excuse submit (#1501)
This commit is contained in:
parent
8528e0beff
commit
0389642543
@ -152,6 +152,8 @@ class AttendancePresenter @Inject constructor(
|
|||||||
fun onExcuseDialogSubmit(reason: String) {
|
fun onExcuseDialogSubmit(reason: String) {
|
||||||
view?.finishActionMode()
|
view?.finishActionMode()
|
||||||
|
|
||||||
|
if (attendanceToExcuseList.isEmpty()) return
|
||||||
|
|
||||||
if (isVulcanExcusedFunctionEnabled) {
|
if (isVulcanExcusedFunctionEnabled) {
|
||||||
excuseAbsence(
|
excuseAbsence(
|
||||||
reason = reason.takeIf { it.isNotBlank() },
|
reason = reason.takeIf { it.isNotBlank() },
|
||||||
|
Loading…
Reference in New Issue
Block a user