Merge pull request #328 from cypherstack/paynyms

"choose from stack" fixes
This commit is contained in:
Diego Salazar 2023-01-31 08:59:12 -07:00 committed by GitHub
commit b9ce5d6d42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 7 deletions

@ -1 +1 @@
Subproject commit 0309140a95a51388df0effcc39ff0a25b2752b29
Subproject commit 9a150d8cd2c3625424b0059e6b7306f3659fdbe0

View file

@ -1130,7 +1130,7 @@ class _BuyFormState extends ConsumerState<BuyForm> {
),
if (isStackCoin(selectedCrypto?.ticker))
CustomTextButton(
text: "Choose from stack",
text: "Choose from Stack",
onTap: () {
try {
final coin = coinFromTickerCaseInsensitive(
@ -1153,7 +1153,11 @@ class _BuyFormState extends ConsumerState<BuyForm> {
_receiveAddressController.text =
await manager.currentReceivingAddress;
setState(() {});
setState(() {
_addressToggleFlag =
_receiveAddressController.text.isNotEmpty;
});
validateAmount();
}
});
} catch (e, s) {

View file

@ -190,7 +190,7 @@ class _Step2ViewState extends ConsumerState<Step2View> {
),
if (isStackCoin(model.receiveTicker))
CustomTextButton(
text: "Choose from stack",
text: "Choose from Stack",
onTap: () {
try {
final coin =
@ -449,7 +449,7 @@ class _Step2ViewState extends ConsumerState<Step2View> {
),
if (isStackCoin(model.sendTicker))
CustomTextButton(
text: "Choose from stack",
text: "Choose from Stack",
onTap: () {
try {
final coin =

View file

@ -301,7 +301,7 @@ class _DesktopStep2State extends ConsumerState<DesktopStep2> {
if (isStackCoin(ref.watch(desktopExchangeModelProvider
.select((value) => value!.receiveTicker))))
CustomTextButton(
text: "Choose from stack",
text: "Choose from Stack",
onTap: selectRecipientAddressFromStack,
),
],
@ -433,7 +433,7 @@ class _DesktopStep2State extends ConsumerState<DesktopStep2> {
if (isStackCoin(ref.watch(desktopExchangeModelProvider
.select((value) => value!.sendTicker))))
CustomTextButton(
text: "Choose from stack",
text: "Choose from Stack",
onTap: selectRefundAddressFromStack,
),
],