Skip to content

Commit

Permalink
add a default for the introText parameter to the PriceBreakdown initi…
Browse files Browse the repository at this point in the history
…aliser
  • Loading branch information
ScottAntonacAP committed Sep 2, 2021
1 parent f4e47f8 commit 74abaa7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/Afterpay/Model/PriceBreakdown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ struct PriceBreakdown {
let string: String
let badgePlacement: BadgePlacement

init(totalAmount: Decimal, introText: AfterpayIntroText) {
init(
totalAmount: Decimal,
introText: AfterpayIntroText = AfterpayIntroText.or
) {
let configuration = getConfiguration()
let formatter = configuration
.map { CurrencyFormatter(locale: $0.locale, currencyCode: $0.currencyCode) }
Expand Down

0 comments on commit 74abaa7

Please sign in to comment.