Skip to content

Commit

Permalink
Close dialog on select receive flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman authored and futurepaul committed Jul 26, 2023
1 parent ef60367 commit dd28f5b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/Receive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -422,7 +427,7 @@ export default function Receive() {
>
<StyledRadioGroup
value={flavor()}
onValueChange={setFlavor}
onValueChange={selectFlavor}
choices={RECEIVE_FLAVORS}
accent="white"
vertical
Expand Down

0 comments on commit dd28f5b

Please sign in to comment.