diff --git a/lib/pages/buy_view/buy_quote_preview.dart b/lib/pages/buy_view/buy_quote_preview.dart index 311a676d1..ed1d1b1a5 100644 --- a/lib/pages/buy_view/buy_quote_preview.dart +++ b/lib/pages/buy_view/buy_quote_preview.dart @@ -33,7 +33,7 @@ class _BuyQuotePreviewViewState extends State { await showDialog( context: context, builder: (context) => BuyWarningPopup( - ticker: widget.quote.crypto.ticker.toUpperCase(), + quote: widget.quote, ), ); } diff --git a/lib/pages/buy_view/sub_widgets/buy_warning_popup.dart b/lib/pages/buy_view/sub_widgets/buy_warning_popup.dart index 42a0554a8..26c087b40 100644 --- a/lib/pages/buy_view/sub_widgets/buy_warning_popup.dart +++ b/lib/pages/buy_view/sub_widgets/buy_warning_popup.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; +import 'package:stackwallet/models/buy/response_objects/quote.dart'; import 'package:stackwallet/utilities/assets.dart'; import 'package:stackwallet/widgets/desktop/primary_button.dart'; import 'package:stackwallet/widgets/desktop/secondary_button.dart'; @@ -8,15 +9,15 @@ import 'package:stackwallet/widgets/stack_dialog.dart'; class BuyWarningPopup extends StatelessWidget { const BuyWarningPopup({ Key? key, - required this.ticker, + required this.quote, }) : super(key: key); - final String ticker; + final SimplexQuote quote; @override Widget build(BuildContext context) { return StackDialog( - title: "Buy $ticker", + title: "Buy ${quote.crypto.ticker}", message: "This purchase is provided and fulfilled by Simplex by nuvei " "(a third party). You will be taken to their website. Please follow " "their instructions.",