Skip to content

Commit f5c875a

Browse files
committed
reset token on chain change
1 parent 63940eb commit f5c875a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/token/create-token-page.client.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ export function CreateTokenAssetPageUI(props: {
165165
client={props.client}
166166
form={tokenInfoForm}
167167
onChainUpdated={() => {
168-
// no op
168+
// reset the token address to the native token address on chain change
169+
tokenDistributionForm.setValue(
170+
"dropERC20Mode.saleTokenAddress",
171+
nativeTokenAddress,
172+
);
169173
}}
170174
onNext={() => {
171175
reportAssetCreationStepConfigured({

0 commit comments

Comments
 (0)