Close dialog on select receive flavor

This commit is contained in:
benthecarman
2023-07-25 16:05:44 -05:00
committed by Paul Miller
parent ef603673f9
commit dd28f5be04

View File

@@ -319,6 +319,11 @@ export default function Receive() {
}
}
function selectFlavor(flavor: string) {
setFlavor(flavor as ReceiveFlavor);
setMethodChooserOpen(false);
}
const [paidState, { refetch }] = createResource(bip21Raw, checkIfPaid);
const network = state.mutiny_wallet?.get_network() as Network;
@@ -422,7 +427,7 @@ export default function Receive() {
>
<StyledRadioGroup
value={flavor()}
onValueChange={setFlavor}
onValueChange={selectFlavor}
choices={RECEIVE_FLAVORS}
accent="white"
vertical