Skip to content

Commit

Permalink
Fix discount code
Browse files Browse the repository at this point in the history
  • Loading branch information
sampettersson committed Jun 26, 2020
1 parent 166d7a8 commit c339d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Projects/Forever/Sources/Forever.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ extension Forever: Presentable {
tableKit.view.scrollIndicatorInsets = UIEdgeInsets(top: 0, left: 0, bottom: bottomInset, right: 0)
tableKit.view.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: bottomInset, right: 0)
}
}.onValue { buttonView in
}.withLatestFrom(self.service.dataSignal.atOnce().compactMap { $0?.discountCode }).onValue { buttonView, discountCode in
shareButton.loadableButton.startLoading()
viewController.presentConditionally(PushNotificationReminder(), style: .modal).onResult { _ in
let activity = ActivityView(
activityItems: [URL(string: L10n.referralsLink(self.service.dataSignal.value?.discountCode ?? "")) ?? ""],
activityItems: [URL(string: L10n.referralsLink(discountCode)) ?? ""],
applicationActivities: nil,
sourceView: buttonView,
sourceRect: nil
Expand Down

0 comments on commit c339d6d

Please sign in to comment.