From 2984a1e05c5cdca01e16b25f9d737f5aa717c0c0 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Thu, 24 Sep 2020 10:50:37 -0400 Subject: [PATCH] comment --- .../Molecules/TopNotification/CollapsableNotification.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotification.swift b/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotification.swift index 53585b74..8539c817 100644 --- a/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotification.swift +++ b/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotification.swift @@ -57,9 +57,10 @@ import Foundation bottomView.set(with: model, delegateObject, additionalData) // Update top view default noop to expand. - if model.topAction?.actionType == ActionNoopModel.identifier { + if let topAction = model.topAction, + topAction.actionType == ActionNoopModel.identifier { topView.button.addActionBlock(event: .touchUpInside) { [weak self] (button) in - Button.performButtonAction(with: model.topAction!, button: button, delegateObject: delegateObject, additionalData: additionalData) + Button.performButtonAction(with: topAction, button: button, delegateObject: delegateObject, additionalData: additionalData) self?.expand(topViewShowing: model.alwaysShowTopLabel) } }