fix: align price formatting
This commit is contained in:
@@ -11,6 +11,7 @@ import Link from "@/components/TempDesignSystem/Link"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
|
||||
import useLang from "@/hooks/useLang"
|
||||
import { formatPrice } from "@/utils/numberFormatting"
|
||||
|
||||
import styles from "./joinScandicFriendsCard.module.css"
|
||||
|
||||
@@ -31,11 +32,14 @@ export default function JoinScandicFriendsCard({
|
||||
|
||||
const saveOnJoiningLabel = intl.formatMessage(
|
||||
{
|
||||
id: "Only pay {amount} {currency}",
|
||||
id: "Only pay {amount}",
|
||||
},
|
||||
{
|
||||
amount: intl.formatNumber(memberPrice?.price ?? 0),
|
||||
currency: memberPrice?.currency ?? "SEK",
|
||||
amount: formatPrice(
|
||||
intl,
|
||||
memberPrice?.price ?? 0,
|
||||
memberPrice?.currency ?? "SEK"
|
||||
),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user