Skip to content

Commit 85fc3e9

Browse files
committed
forward modal dismissal to viewmodel
1 parent d27d197 commit 85fc3e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Sources/PointOfSale/Presentation/Settings/POSSettingsHardwareDetailView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct POSSettingsHardwareDetailView: View {
8383
}
8484
}
8585
.posModal(item: $posModel.cardPresentPaymentAlertViewModel, onDismiss: {
86-
// TODO: Dismissal
86+
posModel.cardPresentPaymentAlertViewModel?.onDismiss?()
8787
}, content: { alertType in
8888
PointOfSaleCardPresentPaymentAlert(alertType: alertType)
8989
.posInteractiveDismissDisabled(alertType.isDismissDisabled)

0 commit comments

Comments
 (0)