mirror of
https://github.com/xtr-dev/rondevu-demo.git
synced 2025-12-10 02:43:23 +00:00
Fix create/join buttons not advancing to next step
Added step advancement logic when selecting create/join action
This commit is contained in:
@@ -441,7 +441,12 @@ function App() {
|
|||||||
{step === 1 && (
|
{step === 1 && (
|
||||||
<ActionSelector
|
<ActionSelector
|
||||||
action={action}
|
action={action}
|
||||||
onSelectAction={setAction}
|
onSelectAction={(selectedAction) => {
|
||||||
|
setAction(selectedAction);
|
||||||
|
if (selectedAction !== 'scan') {
|
||||||
|
setStep(2);
|
||||||
|
}
|
||||||
|
}}
|
||||||
onScanComplete={handleScanComplete}
|
onScanComplete={handleScanComplete}
|
||||||
onScanCancel={handleScanCancel}
|
onScanCancel={handleScanCancel}
|
||||||
log={log}
|
log={log}
|
||||||
|
|||||||
Reference in New Issue
Block a user