1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-11-23 16:26:19 -06:00

Fix empty list on excuse submit (#1501)

This commit is contained in:
Rafał Borcz 2021-09-11 19:40:09 +02:00 committed by GitHub
parent 8528e0beff
commit 0389642543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,8 @@ class AttendancePresenter @Inject constructor(
fun onExcuseDialogSubmit(reason: String) {
view?.finishActionMode()
if (attendanceToExcuseList.isEmpty()) return
if (isVulcanExcusedFunctionEnabled) {
excuseAbsence(
reason = reason.takeIf { it.isNotBlank() },