diff --git a/index.html b/index.html index 8e565f5..c75dd7a 100644 --- a/index.html +++ b/index.html @@ -1338,8 +1338,8 @@ const [suggestedFeeStatus, setSuggestedFeeStatus] = $signal(['idle']) const [feeType, setFeeType] = $signal('suggested') const [atTaprootStep, setAtTaprootStep] = $signal(1); - const [spendingType, setSpendingType] = $signal('key-path'); router.addRoute('send', (state) => { + let { params: { type = 'key-path' } } = state const [isSignRequired, setIsSignRequired] = $signal(false) const renderSendPage = () => { let feeSection = '' @@ -1363,7 +1363,7 @@ ` } let form = ''; - if (spendingType() === 'script-path') { + if (type === 'script-path') { switch (atTaprootStep()) { case 1: form = html` @@ -1511,12 +1511,12 @@